Time Zone Module v1.0.0

Note: This is gonna get a few updates for adding more Time Zones and just making it better!

I’ve decided to make a contribution to the community, so here is the Time Zone Module!

Get it here: Time Zone Module - Roblox

Learn how to use it here: How to use the Time Zone Module

What is the Time Zone Module?

If you want to change UTC 12:00 to EDT 8:00, then use this module!


I am open to all bug reports, criticism, and feedback!

Hope this is helpful for your development!

5 Likes

I checked the source code, it looks like the numbers are in hours, time zones are more dividing an hour. There’s a time zone with +5.45 (Nepal). Saoma skipped 30 December 2011, daylight saving time etc.

I have to ask, do you understand how complicated time zone is and do you know how time zones work around the world? I’d use the IANA timezone database, there’s no use re-inventing the wheel.

I’d advise against the use of %Z for getting the raw time zone data of a user as that’s locale based.

This video explains how time zones are nowhere as uniform:

4 Likes

Hey I am on phone right now could I have a screenshot on how it displays in game?

Thanks for responding. I watched the video and now idk what to do.

Right now if you aren’t in one of the time zones defined in the table, it just shows UTC time. The numbers may be in hours, but like you said,

so I can put 5.45, but of course, there is the other stuff. I will try and make it better, and if I can’t, I’ll either not update it anymore or just scrap the project entirely.

Hi. You could try offset in seconds for example:

exampleZone1 = 3600, -- UTC+1
exampleZone2 = 2700, -- UTC+0:45
...

IANA timezone database has many of the zones that you might find useful (do note it might be too complicated, apologies but I can’t guide you on how to use these): Time Zone Database, GitHub - eggert/tz: Time zone database and code

1 Like