Timezones Not Working?

I can’t seem to get timezones to work. Naturally, I’m interested in getting the correct timezones for appointments made between sellers and clients.

I see merged pull requests regarding timezones, though these pulls were from the days of Harmony (the old appointment manager). My search on github for “timezone” yielded a handful of files, yet it’s not yet clear to me how these all fit together so I figured I’d post here first.

Are timezones currently supported? If not, what would one do to add this functionality?

Indeed right now timezones are not supported in Go (everything happens in UTC).

We (the Sharetribe team) haven’t investigated that feature for Go so I don’t have much insights to share about what would be required to support timezones properly. Curious to see if others have built something around it!

Thank you, Thomas! Just knowing that there’s no timezone functionality currently now gives me a lot more confidence in making my own.

For anyone who’s done it before, I’m up for getting quotes.

Relatively unmodified Sharetribe Go v10 instance, need to implement timezones on a user level.

I made a client-side solution. It’s inelegant, but it works.

https://gist.github.com/jeremyevans6/548ee8a78b60666ee26476bbe0e442f1

1 Like