Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Post time display
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 2, 2011 - 3:41 pm

No I didn't change anything I'm afraid they were always set as they are now.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 2, 2011 - 4:02 pm

OK - sorry to bang on but I can not replicate this at all.
Can you please go to your profile - options - display options.
What exactly is the Timezone dropdown set to and what does it say underneath? Can you copy me the text?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 2, 2011 - 4:22 pm

Certainly in fact I'll do better than that.

Image Enlarger

Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Aug 2, 2011 - 9:11 pm

It seems to only affect views using sp_nicedate()

sp_nicedate() uses: time() and calculates the difference in seconds between now and the post udate (UTC?), would his server timezone or the users timezone even matter? Correct me if I'm wrong, but doesn't time() use UTC by default unless a timezone is set by date_default_timezone_set()? Could another plugin be setting date_default_timezone_set() throwing everything off?

As close as I can figure, sp_nicedate()  on Conrads server is returning -21600 seconds (exactly -6 hours)

 

There I go thinking too much. Tell me to go jump in a lake if needed.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 2, 2011 - 11:59 pm

what is the wp server time set to on wp - settings - options?

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2011 - 4:10 am

London! London! London! So the wp time is British Summer Time = UTC+1.

I'm very familiar with UTC having used it for years in another hobby.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 3, 2011 - 5:01 am

Conrad: Sorry - I probably didn't make myself clear. I wanted you to make sure that both your server timezone (wp settings) and your personal timezone (profile) were set explicitly to London. In other words remove ANY UTC setting from the equation. I am trying to eliminate possible causes and the use of UTC could well be the problem. If you an eliminate that and then make a new post to see the re4sult I would appreciate it.

Lee: While not discounting the nice date routine as the possible problem you do have to remember that the date passed to this routine has already been adjusted for the users personal timezone. This has been carried out when querying the database.

But - basically I am still looking into it but have a suspicion that the problem may lie with the use of a UTC setting in one of the timezones as opposed to an explicitly selected location. Hence my request to Conrad above.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2011 - 5:29 am

Guys how many times do I have to say this?

I do not have any UTC settings either in the wp settings or in my personal profile they are absolutely both set to London and always have been since I actually installed the blog and forum.

So I don't think that's it.

Conrad

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 3, 2011 - 6:09 am

OK - good. It was your reference to UTC+1 above (post 16) that made me think that was what it was set to.

Are you able and would you be willing to take a look in the database for me? If possible I would like to know:

(1) - the sfmembers table - your entry - the user_options column. If you could copy and paste...

(2) - the WP options table - the option values for both 'gmt_offset' and 'timezone_string'

That might help try and track this! Thanks

(My test settings here are currently the same - London and London - and I get correct times so I still need to try and track down the differences)

andy-signature.png
YELLOW
SWORDFISH
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2011 - 8:32 am

My sfmembers 'user_options' entry:

a:7:{s:10:"hidestatus";b:0;s:8:"timezone";d:0;s:6:"editor";i:1;s:8:"namesync";b:1;s:7:"pmemail";b:1;s:15:"timezone_string";s:13:"Europe/London";s:13:"pmdisplaysize";s:1:"0";}

WP options

'gmt_offset' has no value (i.e is empty)

'timezone_string' = Europe/London

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: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625