Localize timezones #1

Closed
opened 2018-06-21 09:51:33 -04:00 by iou1name · 1 comment
Owner

Make the application use the user's timezone for strftime conversions, not the server's timezone. The chat timestamps might already be doing this? Get some yuropoor to confirm this.
Possible methods:

  • Use javascript to get the client's local timezone offset and send a server request to set the offset in the session cookie, similar to how hide_header is done now. This would only be done if the offset is not already set.

  • Use a geoip database to find the IP's timezone, possible using the geoip2 library on pypi. This would give the additional benefit being able to gather unsolicited telemetry data and possibly make one of those fancy "X many users from Y countries" maps. Negative is that IP addresses are less reliable than just asking the client for it's timezone.

Make the application use the user's timezone for strftime conversions, not the server's timezone. The chat timestamps might already be doing this? Get some yuropoor to confirm this. Possible methods: - Use javascript to get the client's local timezone offset and send a server request to set the offset in the session cookie, similar to how `hide_header` is done now. This would only be done if the offset is not already set. - Use a geoip database to find the IP's timezone, possible using the `geoip2` library on pypi. This would give the additional benefit being able to gather unsolicited telemetry data and possibly make one of those fancy "X many users from Y countries" maps. Negative is that IP addresses are less reliable than just asking the client for it's timezone.
iou1name added the
enhancement
label 2018-06-21 09:52:32 -04:00
Author
Owner

Closing this because this repository is deprecated in favor of https://git.steelbea.me/iou1name/Titivillus (which is also dead).

Closing this because this repository is deprecated in favor of https://git.steelbea.me/iou1name/Titivillus (which is also dead).
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: iou1name/anonkun#1
No description provided.