Jump to content
Larry Ullman's Book Forums

Recommended Posts

In the header you put a default timezone,

 

$_SESSION['user_tz'] = 'America/New_York';

 

but can please tell me how to GET the real timezone?

 

My guess you have to get that on the login page, right?

I'm talking about a php function, if there is one, to get the timezone and not have it on database already.

Link to comment
Share on other sites

I thought I talked about this in the book, but I could be wrong. PHP cannot know the user's timezone automatically. This is something you'd either have the user select or you'd use JavaScript to find it. But, again, I'm pretty sure I write about this issue in the book.

Link to comment
Share on other sites

 Share

×
×
  • Create New...