pombreda / gcalcli

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

Problems with printing Sunday events #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using calw or calm command
2. Having events on Sunday

What is the expected output? What do you see instead?
_GraphEvents outputs following Sunday events on current week Sunday

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

Please provide any additional information below.
line 512 in _GraphEvents:
        endWeekDateTime = (startWeekDateTime + timedelta(days=7))
should be:
        endWeekDateTime = (startWeekDateTime + timedelta(days=6))
to place endWeekDateTime to the Saturday
and,
line 547 in _GraphEvents:
            startWeekDateTime = endWeekDateTime
should be:
            startWeekDateTime = (endWeekDateTime + timedelta(days=1))
to set nextweek marker to following Sunday
and,
line 802 in CalQuery:
            end = (start + timedelta(days=(count * 7)))
should be:
            end = (start + timedelta(days=(count * 7 - 1)))
to place end for eventList to the Saturday

Original issue reported on code.google.com by tanaka...@gmail.com on 8 Apr 2008 at 8:40

GoogleCodeExporter commented 9 years ago
This is a duplicate of issue 32 and has been fixed.

Original comment by eda...@insanum.com on 27 Jul 2011 at 7:23