#Person location to timezone

1 messages · Page 1 of 1 (latest)

edgy pewter
#

Has anyone implemented an automation that will map a person's location to their timezone? There is GeoLocatr, but it updates the system's timezone.

thick egret
silent flame
timid grove
#

Looks like that example just returns the zone. If you wanted any type of actual time output, you'd probably just use zoneinfo with that result and do what you need.

silent flame
#

ideally want local only tracking of multiple countries/city time that knows about dst and stuff

timid grove
#

Just tracking the current time itself? Given the zone ID, you should be able to just run the date command and that'll give you the current date/time

silent flame
#

yeah probably, it was for a silly idea I had months ago. i cant even remember half of it. just saw this and thought that it might be a thing i could use

thick hatch
#

Get the location based on the timezone? You need latitude also.

Get the timezone of some user at some location. Atleast you can tell an AI with a script that gets the location of the active user and indeed with some python get the timezone

silent flame