Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
custom-topic
Posts with minus seconds ago
Avatar
yorkie
Guest
Guests
Aug 26, 2014 - 2:44 am
sp_QuotePost Quote

I've read the F.A.Q. - https://simple-press.com/docum.....conds-ago/

But, unfortunatelly, didn't understand what the problem is.

There is no "minus seconds ago" only in case of entering UTC 0 time zone in WordPress general options. But this is not convinient for me, my website and forum users (because hosting time is UTC+4, mine and users time is UTC+3). 

Could you explain me, what should I do in order to use UTC +3 time zone without incorrect "minus seconds ago" description?

Thank you beforehand!

Kiryl

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 26, 2014 - 3:05 am
sp_QuotePost Quote

The point is that php 5 does not really support UTC values properly in all the new timezone functions. It requires a proper location code. In it;s normal state UTC values do NOT appear on the available timezone country/city listing. These are added by WordPress as some sort of mis-guided backward compatibility to php4 when timezones were not really properly supported at all.

The codex article discusses a 'minus seconds' because that ius one of the more common features of trying to perform UTC calculations in php 5. But yes - the other side of your server timeszone will result in value inconsistencies.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 26, 2014 - 8:17 pm
sp_QuotePost Quote

to follow on to Andy's help, instead of UTC-3 pick a proper timezone... that is, pick a city in the pull down menu that is in the same timezone...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10120
Posts: 79607