loglive icon indicating copy to clipboard operation
loglive copied to clipboard

Change Timezone

Open enwokoma opened this issue 4 years ago • 4 comments

Hello, what timezone does loglive use? How do I change the timezone because I noticed the time is somehow inconsistent.

enwokoma avatar May 07 '20 08:05 enwokoma

This is what we use

https://github.com/egoist/loglive/blob/5e213ded2c77fb98b7737b4ce6680e08c1ce954b/src/utils/renderer.js#L2

I think it's using the local timezone?

egoist avatar May 07 '20 08:05 egoist

Thanks for pointing that out. Although I am still confused as to how to go about changing that because I strongly believe that the time is malfunctioning Okay, take a look at this: https://gigabytedevelopersinc.com/apps/cometotp/changelog

Under version 5.2.0, it says about 10 hours ago whereas it's not up to an hour I published that update. Sometimes the time works, sometimes it doesn't. If at all it works, I have to set the time to an hour behind or an hour ahead my local time for it to nearly match the actual time.

enwokoma avatar May 07 '20 09:05 enwokoma

Not sure if it's caused by this, but 

a zero is missing at the end, it should be 2020-05-07T09:00:00

egoist avatar May 07 '20 09:05 egoist

Wow. I couldn't have figured that out. Added a zero and cleared my cache, it works. Though it's still an hour behind my local time because it's now saying 'about 2 hours ago' whereas it should be saying 'over 2 hours ago', it's manageable anyways. I think it's (loglive) making use of GMT +0 whereas am on GMT +1

Maybe it will be something you should consider in #10

enwokoma avatar May 07 '20 10:05 enwokoma