Ulysses Stuff > General Chat & Help and Support

Question about time command

(1/1)

billy90210:
Why does the time command show my server time as 4 hours ahead of what it is?

JamminR:
Is the server timezone set correctly?
"thetime" uses straight lua os.date, which in most cases, returns the number of seconds since an epoch.
We use some formatting to turn that number into a human readable time.

Using USA for example.
Say it's 12pm GMT
If server is on west coast. (GMT-8), and your server's region is set to east coast (GMT-5), even though you MIGHT have your clock on server set to 4AM, os.date would still report epoch for 7am because that's where the region is.

billy90210:
Hmm interesting, my servers location  is in New York City. It's currently 11:13pm there but !thetime is showing 3:13 AM. Not completely sure how I would change the time zone to fix this

JamminR:
If it's shared hosting, it very well could just have the time set incorrectly too.
Either way, you'd likely have to ask your host provider.
(also, are you 'sure' it's location is NY?)

Navigation

[0] Message Index

Go to full version