How could I make a GUI that shows a certain timezone to all of the players?

  1. What do you want to achieve? Keep it simple and clear!
    I’d like to have a GUI in the center of the screen that displays a certain timezone (-7 MST) for all of the players in the current server

  2. What is the issue? Include screenshots / videos if possible!
    Answered in 1.

  3. What solutions have you tried so far?
    I’ve looked around on the internet and so far I’ve found nothing but how to make realistic lighting with timezones.

If you can help, it would be much appreciated! Thank you in advance :blush:

Hi!

Easy way: http request to this api:

Hard (but “right” way)
Use UTC time functions:

1 Like

Oof… well I really don’t script much but thanks for the help! :slight_smile:

1 Like

os.time() then add the hours and then run os.date(newTime) to get a table of the date.

1 Like
local now = os.time() - 25200 -- UTC-7
local timeTable = os.date("!*t", now)
print(timeTable) -- Check console for the table variables.

Hope that helps you!

2 Likes

What timezone are you looking for? I’ll try and write you a quick script using that website.

1 Like

Rather not use HttpService for getting the time, as you can exhaust the quota of HTTP requests quickly.

1 Like

Whoops, I haven’t been on the Developer Forum in a few days, sorry! It’s -7 or MST Arizona Time