- Home /
Why in game time is correct in dev env. but not in browser
I have a clock in my application. I am using var dt = new Date(); Then var day = dt.Now.Day; var month = dt.Now.Month; var year = dt.Now.Year; var hours = dt.Now.Hour; var minutes = dt.Now.Minute; var seconds = dt.Now.Second; Then deskClockText.GetComponent(TextMesh).text = hours + "-" + minutes + "-" + seconds;
When I run in the dev environment the time is accurate. When I export to Flash and run in a browser the time is 5 hours ahead. Like it is exactly on GMT.
Any ideas on how to get it to be on local time? Thanks in advance.
Answer by diggerjohn · Dec 03, 2013 at 05:39 PM
I have found that the solution appears to not building a Flash export. When I went with a Web Player build everything is just fine.
Your answer
Follow this Question
Related Questions
Smooth gradient between colours? 1 Answer
Accurate millisecond timed thread 2 Answers
Energy refill script bug fix 2 Answers
Accelerate/Decelerate Custom Game Clock 2 Answers