Hi all:
I use the googlecl to add the calendar. I send a simple command line in google.exe
google calendar add "1:30 todo" --reminder 10m
That command can be successfully, but in the google calendar that I see the time is 13:30.
I try the time 1~6 clock it always become to 13~18.
How can I do insert the time 1:30 (24h)?
I find the code in date.py
...
def determine_time(self, time_token):
"""Parses time token into a time.
Note: ambiguous times like "6" are converted according to how Google
Calendar interprets them. So "1" - "6" are converted to 13-18 on a 24 hour
clock.
Args:
time_token: String to be interpreted as an hour and minute.
Returns:
Time object with hour and minute fields filled in if the
time_token could be parsed. Otherwise, None.
"""
hour, minute = parse_ambiguous_time(time_token)
if (hour or minute):
# The ambiguous hours arranged in order, according to Google Calendar:
# 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6
if 1 <= hour and hour <= 6:
hour += 12
else:
...
I try mark that code ( hour += 12 ) rebuild the date.pyo & replace the lib file.
But the didn't work, that time still 13:30. ><||
br
Cooper