Commit graph

22 commits

Author SHA1 Message Date
jesopo
d0d5cc4d08 split utils.datetime out in to .parse and .format 2020-01-30 21:20:56 +00:00
jesopo
8d5f0486e1 Revert "if a timezone isn't found, prepend it with "Etc/" (for e.g. "Etc/GMT+1")"
This reverts commit fc0e6bdce0.
2020-01-01 11:41:41 +00:00
jesopo
fc0e6bdce0 if a timezone isn't found, prepend it with "Etc/" (for e.g. "Etc/GMT+1") 2020-01-01 11:27:24 +00:00
jesopo
d3105ebefc fix !time output now that human has tz in it 2019-12-30 17:19:08 +00:00
jesopo
6380e80282 don't use .replace for timezone, use .astimezone 2019-12-30 17:18:54 +00:00
jesopo
e1f8e8a524 add time-localise export in user_time, to timezone localise a datetime 2019-12-30 17:10:16 +00:00
jesopo
5d01db8514 move all datetime-related code from utils/__init__ to utils.datetime 2019-11-15 13:59:09 +00:00
jesopo
7628e6f7fc default target_user to None so the var always exists 2019-11-14 15:48:36 +00:00
jesopo
423e6b00b6 remove !timezone as !time now shows UTC offset 2019-11-04 10:11:57 +00:00
jesopo
9de95d17e5 how many times can i typo "utc" 2019-11-03 12:50:47 +00:00
jesopo
352f6b26d3 "GMT" -> "UTC" 2019-11-03 12:48:50 +00:00
jesopo
79beb17aa3 show GMT offset in !time output 2019-11-01 16:06:35 +00:00
jesopo
f7d34e16bb if a nickname has no location set, assume it's a location 2019-10-18 15:03:19 +01:00
jesopo
b1033a0721 support location names for !timezone too 2019-09-08 18:22:04 +01:00
jesopo
95c007c1da support showing time for locations, not just users 2019-09-08 18:17:32 +01:00
jesopo
638df8729e switch to using pytz instead of an API for localised time 2019-09-05 12:25:17 +01:00
jesopo
c4428e479f Force removal of ":" from user_time.py API-provided ISO8601 2019-09-04 10:29:05 +01:00
jesopo
047a21629f add !timezone 2019-07-27 21:09:45 +01:00
jesopo
268c5adb3c Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
jesopo
724b3380d3 Use require_setting in user_time.py and weather.py 2019-05-23 11:50:12 +01:00
jesopo
bcae650565 Actually provide formatting arg for user_time.py error 2019-04-28 15:43:56 +01:00
jesopo
0ba1b275d9 Add user_time.py 2019-04-28 12:12:00 +01:00