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.
Buying anything on Amazon? Please use the Geekzone Amazon aff link.




176 posts

Master Geek


Topic # 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

Create new topic
16642 posts

Uber Geek
+1 received by user: 1462

Trusted
Vodafone NZ

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

Check your profile settingd






176 posts

Master Geek


  Reply # 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.

BDFL
50184 posts

Uber Geek
+1 received by user: 4743

Administrator
Trusted
Geekzone
Subscriber

  Reply # 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...





7777 posts

Uber Geek
+1 received by user: 326

Trusted
Subscriber

  Reply # 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.

BDFL
50184 posts

Uber Geek
+1 received by user: 4743

Administrator
Trusted
Geekzone
Subscriber

  Reply # 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.





7777 posts

Uber Geek
+1 received by user: 326

Trusted
Subscriber

  Reply # 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?

3084 posts

Uber Geek
+1 received by user: 33

Trusted

  Reply # 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?






605 posts

Ultimate Geek
+1 received by user: 1

Trusted

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

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

Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





Trending now »

Hot discussions in our forums right now:

Netflix officialy launching in NZ in March
Created by jarj, last reply by tdgeek on 21-Nov-2014 19:08 (97 replies)
Pages... 5 6 7


Current Netflix payment method as of Nov 14 - Cant pay
Created by andynz, last reply by Killerkiwi2005 on 24-Nov-2014 15:19 (25 replies)
Pages... 2


Click Monday Deals
Created by mrtoken, last reply by networkn on 24-Nov-2014 13:58 (23 replies)
Pages... 2


Gull Employment Dispute.
Created by networkn, last reply by richms on 24-Nov-2014 14:08 (89 replies)
Pages... 4 5 6


SEO spammers
Created by freitasm, last reply by freitasm on 24-Nov-2014 15:24 (24 replies)
Pages... 2


Free 1gb data with $19 combo until end of Jan 2015 (1.5gb total)
Created by eXDee, last reply by un1qo on 24-Nov-2014 14:51 (21 replies)
Pages... 2


SSD hard drive in aging HTPC disappointingly slow
Created by watman, last reply by joker97 on 23-Nov-2014 22:02 (20 replies)
Pages... 2


To use online streaming do I need to be a geek with unlimited fibre broadband?
Created by Beecee, last reply by littleheaven on 21-Nov-2014 16:12 (21 replies)
Pages... 2



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.

Alternatively, you can receive a daily email with Geekzone updates.