pombreda / gcalcli

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

Hour missing in agenda view #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the command: gcacli --cal XXX agenda 11/11/2008 12/11/2008

What is the expected output? What do you see instead?
I see this: 
Tue Nov 11  :30pm    XXXX
            :15pm    XXXX
            :30pm    XXXX
            :00pm    XXXX
            :30pm    XXXX
            :00pm    XXXX

It should be like this:

Tue Nov 11  4:30pm    XXXX
            5:15pm    XXXX
            6:30pm    XXXX
            7:00pm    XXXX
            7:30pm    XXXX
            8:00pm    XXXX

What version of the product are you using? On what operating system?
Windows XP SP3 - Active Python 2.5.2.2 - gcacli 1.4

Please provide any additional information below.

Original issue reported on code.google.com by jovi...@gmail.com on 8 Nov 2008 at 6:25

GoogleCodeExporter commented 9 years ago
I managed to get it working changing the line 605 of the script.
It was :         timeFormat = '%l:%M'
Working :        timeFormat = '%I:%M'

Also, if you want a 24h format, try changing it to         timeFormat = '%H:%M'
and removing "+ meridiem" in line 621.

Original comment by jovi...@gmail.com on 8 Nov 2008 at 6:33

GoogleCodeExporter commented 9 years ago
Fixed.  gcalcli now only uses ANSI C strftime formats.  Also a new --24hr 
option has been added.

Original comment by eda...@insanum.com on 30 Jul 2011 at 7:19