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.

1 Answer

1

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.