pombreda / gcalcli

Automatically exported from code.google.com/p/gcalcli
0 stars 0 forks source link

Sunday wholeday event shown again in next week #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have a whole day event in Sunday
2. run gcalcli calm
3. that event will show on its correct day and appear again in next Sunday

What is the expected output? What do you see instead?
It should not appear again.

What version of the product are you using? On what operating system?
1.4

Please provide any additional information below.
The time range calculation in _GetWeekEventStrings() is incorrect.

@@ -385,7 +385,7 @@
             dayNum = int(eventStartDateTime.strftime("%w"))

             if ((eventStartDateTime >= startDateTime) and
-                (eventStartDateTime <= endDateTime)):
+                (eventStartDateTime < endDateTime)):

                 meridiem = eventStartDateTime.strftime('%p').lower()
                 tmpTimeStr = eventStartDateTime.strftime("%l:%M") + meridiem
@

Original issue reported on code.google.com by kuang...@gmail.com on 10 May 2008 at 10:49

GoogleCodeExporter commented 9 years ago
Fixed.  Thanks for identifying that problem.

Original comment by eda...@insanum.com on 27 Jul 2011 at 5:13

GoogleCodeExporter commented 9 years ago

Original comment by eda...@insanum.com on 27 Jul 2011 at 5:13