Jump to content

Client Browser Time


PHP_Newbie1

Recommended Posts

javascript.

 

php being serverside can't really help much with time differences.  an easy option is to have the user enter and save an offset (-3, 0, +5, etc) and add that to time.  so, they log in, it saves their saved offset to a session variable, then you just add that offset onto the time/date anywhere you use date or time.

 

or you could use javascript.

Link to comment
Share on other sites

You're right. I'll try Javascript. I mean, what percentage of people disable javascript anyway?

not many =)

 

if anything, just require that they have javascript enabled to use your site.  with jquery and ajax ever-so-popular, i don't think it's "wrong" anymore to require JS.  just my opinion of course =)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.