Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


quandum

204 posts

Master Geek


#58764 18-Mar-2010 22:33
Send private message

Am I the only one being overly geeky and noticing that the GZ web server doesnt seem to have a NZDST patch, seems to be 1 hour out of sync IMHO....either that or I'm very very blind today...

e.g. this thread was posted around 2235pm




I would love to change the world, but they won't give me the source code

#BOFH

Create new topic
johnr
19282 posts

Uber Geek
Inactive user


  #308949 18-Mar-2010 22:40
Send private message

Check your profile settingd

 
 
 

Shop MyHeritage and uncover your origins and find new relatives with a simple DNA test. (affiliate link).
quandum

204 posts

Master Geek


  #308953 18-Mar-2010 22:47
Send private message

Well....profile setting was NZ, I've changed the TZ manually...but I'm kinda sure it used to be ok previously..


anyways here's hoping its fixed up.




I would love to change the world, but they won't give me the source code

#BOFH

freitasm
BDFL - Memuneh
76349 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #308955 18-Mar-2010 22:47
Send private message

It wouldn't be very geeky if we didn't have the right time on the server ;-)

As pointed out, we don't automatically update your profile to reflect DST, so you can change it there...





Please support Geekzone by subscribing, or using one of our referral links: Dosh referral: 00001283 | Sharesies | Goodsync | Mighty Ape | Backblaze

 

freitasm on Keybase | My technology disclosure

 

 

 

 

 

 




Ragnor
8085 posts

Uber Geek

Trusted

  #309151 19-Mar-2010 14:47
Send private message

There is an elegant way to handle time localisation automatically which is used pretty commonly these days, you might be interested in it Mauricio.

1: When you store the post date/time you use the current UTC time instead of local server time, in sql the function is GETUTCDATE() instead of GETDATE() for example.

2: Then read the user's datetime offset from the browser with javascript and store it in a hidden input field.  You can default to the offset for NZ (12 or 13) if required for non JS users.

3: When outputting the page html you read the offset from the hidden input and apply it to the the UTC time for each post.

See here for a .net/jquery example:
http://kohari.org/2009/06/15/automagic-time-localization/

It could easily be done with standard JS and classic asp.

freitasm
BDFL - Memuneh
76349 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #309184 19-Mar-2010 15:59
Send private message

Yes, I know how to do it, and discussed this with Phil before - he sent me that code. It's just that I rather not rely on the browser client to do something using a feature (Javascript) that can be disabled.





Please support Geekzone by subscribing, or using one of our referral links: Dosh referral: 00001283 | Sharesies | Goodsync | Mighty Ape | Backblaze

 

freitasm on Keybase | My technology disclosure

 

 

 

 

 

 


Ragnor
8085 posts

Uber Geek

Trusted

  #309444 20-Mar-2010 22:21
Send private message

Just default to profile setting or local server time in the case that the user doesn't have js enabled?

Has to be better than every user having to edit their profile to change the timezone twice a year after DST changeovers to get the post times to not be 1hr out?

grant_k
3539 posts

Uber Geek

Trusted

  #309455 20-Mar-2010 22:51
Send private message

Ragnor: Has to be better than every user having to edit their profile to change the timezone twice a year after DST changeovers to get the post times to not be 1hr out?

Agreed, this is silly.  Most other forums do it automatically, as per this one that I spend a fair bit of time on:

In addition, you may set the appropriate option to allow for daylight savings time in your part of the world.

DST Correction Option: Automatically detect DST settings.

It is a much, much smaller and less complicated forum than Geekzone, so really, how hard can it be to fix this?








wazzageek
1090 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #309518 21-Mar-2010 14:41
Send private message

Or set your profile to be UTC ... no more daylights savings dramas.

Create new topic





News and reviews »

Samsung Announces Galaxy AI
Posted 28-Nov-2023 14:48


Epson Launches EH-LS650 Ultra Short Throw Smart Streaming Laser Projector
Posted 28-Nov-2023 14:38


Fitbit Charge 6 Review 
Posted 27-Nov-2023 16:21


Cisco Launches New Research Highlighting Gap in Preparedness for AI
Posted 23-Nov-2023 15:50


Seagate Takes Block Storage System to New Heights Reaching 2.5 PB
Posted 23-Nov-2023 15:45


Seagate Nytro 4350 NVMe SSD Delivers Consistent Application Performance and High QoS to Data Centers
Posted 23-Nov-2023 15:38


Amazon Fire TV Stick 4k Max (2nd Generation) Review
Posted 14-Nov-2023 16:17


Over half of New Zealand adults surveyed concerned about AI shopping scams
Posted 3-Nov-2023 10:42


Super Mario Bros. Wonder Launches on Nintendo Switch
Posted 24-Oct-2023 10:56


Google Releases Nest WiFi Pro in New Zealand
Posted 24-Oct-2023 10:18


Amazon Introduces All-New Echo Pop in New Zealand
Posted 23-Oct-2023 19:49


HyperX Unveils Their First Webcam and Audio Mixer Plus
Posted 20-Oct-2023 11:47


Seagate Introduces Exos 24TB Hard Drives for Hyperscalers and Enterprise Data Centres
Posted 20-Oct-2023 11:43


Dyson Zone Noise-Cancelling Headphones Comes to New Zealand
Posted 20-Oct-2023 11:33


The OPPO Find N3 Launches Globally Available in New Zealand Mid-November
Posted 20-Oct-2023 11:06









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.







GoodSync is the easiest file sync and backup for Windows and Mac