Closed (fixed)
Project:
MongoDB
Version:
7.x-1.x-dev
Component:
Session
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Feb 2012 at 10:05 UTC
Updated:
4 Apr 2012 at 08:10 UTC
Jump to comment: Most recent file
Checking on includes/session.inc drupal_session_initialize() its last task is to set the default timezone with date_default_timezone_set(drupal_get_user_timezone());. This is completly missing from mongodb_session.inc meaning without extra code elsewhere to handle this case the page will always fall back to whatever is set in php.ini as default timezone and the variable 'date_default_timezone' will have no effect.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | missing_timezone_handling-1454078-5.patch | 868 bytes | misc |
| #1 | mongodb-session-timezone-setting-1454078-1.patch | 411 bytes | nagba |
Comments
Comment #1
nagba commentedOne line patch adding 'date_default_timezone_set(drupal_get_user_timezone());' to drupal_session_initialize().
Comment #2
misc commentedSeems good to me.
Comment #3
misc commentedAdded to the latest dev.
Comment #4
nagba commentedthanks
Comment #5
misc commentedI have some issues when user->timezone is not set, so I added a check for this.
Comment #6
misc commentedComment #7
misc commentedCommited to the latest dev.