Is is possible update sitetimezone per session so when default site timezone updated per session/user ( both users and guests ) dates would display correct without hardcode? Can it be?
something like that?


function module_thisuser($create = TRUE) {
  global $user;
  if ($user->uid) {
    return $user->uid;
  }
  elseif (!isset($_SESSION['thisuser']) && $create) {
    $_SESSION['thisuser'] = md5(uniqid(rand(), TRUE));
 // some jquery grab user's timezone and
	simpleclock_timezone_update_site();// update default sitetime zone for user
  }
  return isset($_SESSION['thisuser']) ? $_SESSION['thisuser'] : FALSE;

 }

Comments

mroscar’s picture

Just thought could be possible to display correct times for anonyms from different parts of world... thanks.. anyway.. since am a rookie but with average iq.. lol... also tell me why if not possible?

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.