Post anything about MX Simulator here. Please. I'm begging you.
attacker5
Posts: 2226 Joined: Tue Aug 18, 2009 8:53 pm
Team: Ub e moh tow
Post
by attacker5 » Sat Jul 10, 2010 5:54 pm
Hey,
I was just wondering how one whould go about posting a time in a post that will automatically convert to the viewers local timezone time?
Iv been searching but dont seem to find anything, help whould really be appreciated.
Thanks.
rideblue56
Posts: 3261 Joined: Thu May 21, 2009 6:03 pm
Team: FSK
Location: Virginia, USA
Post
by rideblue56 » Sat Jul 10, 2010 5:59 pm
user control panel> Board preferences> "My timezone" : select your timezone.
yzmxer608
Posts: 15352 Joined: Mon Dec 29, 2008 4:30 am
Team: SYS
Location: Wisconsin, U.S.A
Post
by yzmxer608 » Sat Jul 10, 2010 6:03 pm
I think he means something like this:
http://mxsimulator.com/benchracing3/vie ... f=1&t=5158 . Not sure how it works though (I quoted it to see the code but I can't figure it out).
TeamHavocRacing wrote: If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
jlv
Site Admin
Posts: 15336 Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:
Post
by jlv » Sat Jul 10, 2010 10:59 pm
The number in the date tag is
Unix time . Basically it's seconds since January 1, 1970 UTC. You can use
this to convert to it.
This date:
Was made with this code:
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
attacker5
Posts: 2226 Joined: Tue Aug 18, 2009 8:53 pm
Team: Ub e moh tow
Post
by attacker5 » Sun Jul 11, 2010 6:33 am
ok thats cool, but will that time automatically change depending on the viewers (the person viewing the post) timezone?
Thnaks
jlv
Site Admin
Posts: 15336 Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:
Post
by jlv » Mon Jul 12, 2010 2:23 am
It should, but it depends on the user's clock being set correctly.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
attacker5
Posts: 2226 Joined: Tue Aug 18, 2009 8:53 pm
Team: Ub e moh tow
Post
by attacker5 » Mon Jul 12, 2010 7:45 am
Ok thanks alot for all the help.