Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: billy90210 on August 28, 2019, 04:09:11 PM

Title: Question about time command
Post by: billy90210 on August 28, 2019, 04:09:11 PM
Why does the time command show my server time as 4 hours ahead of what it is?
Title: Re: Question about time command
Post by: JamminR on August 28, 2019, 07:08:36 PM
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.
Title: Re: Question about time command
Post by: billy90210 on September 05, 2019, 08:14:35 PM
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
Title: Re: Question about time command
Post by: JamminR on September 06, 2019, 01:57:28 PM
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?)