gcalcli
gcalcli copied to clipboard
tzname CST identified but not understood. Pass `tzinfos` argument in order to correctly return a timezone-aware datetime
How do you specify a time zone? When specified in quick, they don't stick, and in add I get an error.
─➤ gcalcli add
Title: Adrienne M
Location:
When: 15:00 CST
/usr/local/lib/python3.7/site-packages/dateutil/parser/_parser.py:1206: UnknownTimezoneWarning: tzname CST identified but not understood. Pass `tzinfos` argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception.
category=UnknownTimezoneWarning)
gcalcli v4.0.4 (Eric Davis, Brian Hartvigsen, Joshua Crowgey)
If you use TZ names from the tzdatabase, then you don't get the error (however, I can repro the non-stickiness).
jcrowgey@tsuga:~$ gcalcli [email protected] add
Title: test pacific
Location:
When: 15:00 America/Los_Angeles
Duration (minutes): 8
Description:
Enter a valid reminder or "." to end: .
jcrowgey@tsuga:~$ gcalcli [email protected] add
Title: test central
Location:
When: 15:00 America/Chicago
Duration (minutes): 8
Description:
Enter a valid reminder or "." to end: .
jcrowgey@tsuga:~$ gcalcli [email protected] add
Title: test zulu
Location:
When: 15:00 Zulu
Duration (minutes): 8
Description:
Enter a valid reminder or "." to end: .
jcrowgey@tsuga:~$ gcalcli agenda
Thu May 02 3:00pm test pacific
3:00pm test central
3:00pm test zulu
Regarding "CST" vs the tzinfo db names, it's handy that the library is telling us what to do to make it better, however. I wonder if that would help the stickiness too.