@baris it works 🙂
thanks for quick reply 🙂
@Paul.Li-李隱唐 I'm pretty sure it uses the time of the server. Who is your hosting with and where's it located?
Both timezone is GMT+8
Just thought, isn't all the time on NodeBB relative. From this comment by @julian a while back,
we save UTC date timestamp on server, and then translate it to an ISOString for "relative date" purposes. So while the system itself is fine even across timezones (fingers crossed)
So, assuming you're still using relative time, this shouldn't be an issue? Unless it starts from posted 8 hours ago.
If I need it is "2014-08-14T22:22:37"
what should I do
That brings up a good point... the datetime strings are saved in the server according to the server time, but afaik, we don't handle timezone translations, so if you're in a different timezone than your server, you might see incorrect relative times
Seems like something we really should have, to translate ISO date strings to the proper timezone offset based on user preferences... gh#1994
I need to review how we handle the relative time generation, because it seems to be working fine at the moment (our server is UTC, I am EDT, relative times appear correct for me). Are the relative times incorrect for you?
@Paul.Li-李隱唐 Upon further investigation, it seems the relative time library we use does take time zone calculations into account. What is your server's timezone set to? I can imagine problems would arise if your server is not set to UTC...
ok , I set to UTC,
I have a new problem about post time, the problem is when I post a article at 16:00,
the article time will show it is post about 8 hours ago, but actually it is post about 1 minutes ago,
please help me to fix this problem, thanks !
I found a mistake,My server timezone is UTC+8, then I change it to UTC, but the forum time still is UTC time.
,maybe need nodebb support timezone function.
@julian The time string is always UTC time. It seems that we need a new feature to translate it to local time based on user's timezone setting and a global timezone setting for guest.
@julian Could you please take a look on this issue ASAP..
Could I know What time exactly can be fix this ?
If problem can't be resolved, Is there any other solution ?
I’d appreciate any help you give me with this !!
It seems the time zone is working fine even here. Our server time is UTC, and my local clock is EDT (-4 hours), and the relative time is working as intended.
Is your local clock set to the correct time zone?