MantisBT - v2.4 Release (Closed)
View Issue Details
0000682v2.4 Release (Closed)[All Projects] Generalpublic2011-01-03 18:522011-08-16 23:46
Reportercaseydk 
Assigned Tocaseydk 
PriorityhighSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version2.4 
Summary0000682: Autoconfigure Default Timezone
Description
At present, when web2project is installed, we just set a timezone for the Default User Preferences. If it's incorrect or the Admin doesn't know to change the timezone, all future users will have the incorrect timezone too.

At install, if we can detect the person's timezone via Javascript, we can make an educated guess on what the default should be. It's not guaranteed to be correct but will be more often than the default.
TagsNo tags attached.
related to 0000765closed robertbasic wrong timezone for admin 
Attached Files

Notes
(0001520)
eureka   
2011-01-04 09:59   
(Last edited: 2011-01-04 10:00)
The first way using cookie :
setCookie("tzo", new Date().getTimezoneOffset()/60)*(-1), 30);

or the best way using an hidden form element whose id is 'tzo' :
document.getElementById('tzo').value = (new Date().getTimezoneOffset()/60)*(-1);

(0001884)
robertbasic   
2011-04-27 13:18   
(Last edited: 2011-04-30 02:11)
Pull request is sent https://github.com/caseysoftware/web2project/pull/24

(0001907)
caseydk   
2011-05-06 21:09   
Congrats to RobertBasic who resolved this one (with a minor tweak) in r1886-1889;

Issue History
2011-01-03 18:52caseydkNew Issue
2011-01-04 09:59eurekaNote Added: 0001520
2011-01-04 10:00eurekaNote Edited: 0001520
2011-02-24 00:55caseydkProjectPending Requests => v2.4 Release (Closed)
2011-04-13 06:51caseydkRelationship addedrelated to 0000765
2011-04-27 13:18robertbasicNote Added: 0001884
2011-04-30 02:11robertbasicNote Edited: 0001884
2011-05-06 21:09caseydkNote Added: 0001907
2011-05-06 21:09caseydkStatusnew => resolved
2011-05-06 21:09caseydkResolutionopen => fixed
2011-05-06 21:09caseydkAssigned To => caseydk
2011-08-16 23:46caseydkStatusresolved => closed
2011-08-16 23:46caseydkFixed in Version => 2.4