You Are Here:

Community: Developer Discussion Boards

#1 Old Unhappy Calendar find_instances returns wrong datetime values - 2007-08-20, 10:37

Join Date: Aug 2007
Posts: 5
Location: Jerusalem, Israel
arielg07
Offline
Registered User
Hi all,

I have the following problem:
I use the find_instances function of the CalendarDB module, to seek for meeting from now (time.time()) a week on. First of all, I get instances which occoured before the start date. More seriously, the 'datetime' attribute of the instances contains just the date of the instance. The time is always 00:00:00. How can this be fixed? I cannot refer to the start_time of the corresponding meeting, because it is a repeating event, and it gives me the time+date of the initial meeting. Did anyone else had this problem?

Thanks,
Ariel
Reply With Quote

#2 Old Re: Calendar find_instances returns wrong datetime values - 2007-08-20, 10:52

Join Date: Aug 2007
Posts: 5
Location: Jerusalem, Israel
arielg07
Offline
Registered User
Well, if it interests anybody I solved it by a workaround, getting the real time of the meeting with the line

Code:
datetime = instance['datetime'] + (meeting.start_time % day)
but this is quite ugly.
Anyway, it doesn't solve the first problem

Ariel
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Canvas.getHeight() return wrong values bluebelle_88 Mobile Java Media (Graphics & Sounds) 1 2007-03-16 15:52
6230 DeviceClass API returns wrong bits? mlaverd Bluetooth Technology 1 2004-10-16 19:24
font.getHeight returns different values among devices s40 dpolyakov Mobile Java General 2 2004-02-16 15:02
Personal JSmith77 PersonalJava 4 2003-07-30 13:52
getPixels() returns pixels for wrong Graphicsobject kyhlis Mobile Java Media (Graphics & Sounds) 1 2003-04-29 15:07

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia