Skip to Content
Register · Login
About Theme

A Letterboxing Community

Atlas Quest
Search Edit Search

Read Thread: Time variance between pc and mobile

Re: Time variance between pc and mobile
Board: Letterboxing Help Desk
Reply to: #426662 by Dizzy
Aug 10, 2009 11:48am
Thread (disabled) Board
For instance, pc will say a message was posted at 10pm and the phone says 8pm. I am logged into my account both on the pc and phone, so I would *think* the times would match up but they don't. My pc is central and my mobile is pacific.

AQ does a little "trick" to figure out the timezone on your system, but it uses JavaScript to make it work. I have AQ send a little snippet of JavaScript to your machine, then have that JavaScript set a cookie for the "current time" on your system, then send that time back to AQ during the next page hit. AQ compares the time on your machine to "AQ time" and remembers the difference. From then on, all message board posts, AQ mail, and other things that use time are automatically adjusted based on the time difference between the two servers.

The catch, however, is that your browser must support JavaScript. Without it, the trick doesn't work, and the displayed times default to AQ time (which is Pacific time).

If you can hack the cookies on your browser, set the cookie named "cTimeOffset" to the number of minutes difference between your time zone and AQ time. (Which can be negative or positive, depending on which side of AQ time you sit on.) Make it a permanent cookie if you want to make sure the value sticks. AQ sets it to expire at the end of the session automatically and will attempt to reload it with each new session, but you can override that.

I have absolutely no idea how to manually set a cookie on a mobile device, though, or even if it's possible.

-- Ryan