Hrmn, what about this...grep the timezone string for the word "Daylight", and if it appears, minus an hour from the offset :
if (d.toString().indexOf("Daylight")!=-1) gmtHours--;
Have updated http://www.workshop.twofishy.net/phpbb/9558/timezone.html to reflect this change.
It does not ...
Search found 3 matches
- Thu Aug 25, 2011 6:49 am
- Forum: [3.1/Ascraeus] Merged RFCs
- Topic: [RFC|Merged] Switch to PHP timezone handling
- Replies: 95
- Views: 198485
- Thu Aug 25, 2011 6:09 am
- Forum: [3.1/Ascraeus] Merged RFCs
- Topic: [RFC|Merged] Switch to PHP timezone handling
- Replies: 95
- Views: 198485
Re: [RFC|Accepted] Switch to PHP timezone handling
I've wrote a small bit of Javascript which calculates your timezone offset, and then uses this to select the "default" option (which is hardcoded to UTC +0) :
<script type="text/javascript">
var d = new Date()
var gmtHours = -d.getTimezoneOffset()/60;
for (var i=0;i<document.getElementById ...
<script type="text/javascript">
var d = new Date()
var gmtHours = -d.getTimezoneOffset()/60;
for (var i=0;i<document.getElementById ...
- Wed Aug 17, 2011 10:50 am
- Forum: [3.1/Ascraeus] Merged RFCs
- Topic: [RFC|Merged] Switch to PHP timezone handling
- Replies: 95
- Views: 198485
Re: [RFC|Accepted] Switch to PHP timezone handling
Hello all,
Rather than having users navigate the entire list of all possible time zones, why not simply ask them what time it is where they are, and using their local time, figure out (or at least greatly cut down) which time zone they are in?
For example :
a) Its 8:40pm for me.
b) The server ...
Rather than having users navigate the entire list of all possible time zones, why not simply ask them what time it is where they are, and using their local time, figure out (or at least greatly cut down) which time zone they are in?
For example :
a) Its 8:40pm for me.
b) The server ...