Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dmitskevich
Visitor

roDateTime gives wrong date and time

Dear Roku Developers,

I've just executed the following code on my box:

dateTime = CreateObject("roDateTime")
dateTime.mark()
print dateTime.asDateStringNoParam()
print dateTime.getHours().tostr()+":"dateTime.getMinutes().tostr()

Result:

------ Running ------
Friday March 18, 2011
0:48


but GMT date/time now is 24 April 4:11 pm !!!

I have problem with date and time on my box for several days. I did factory reset, I left my box running for more then 24 hours, did reset, changed connection from wired to wireless, changed time on my network router, .... - nothing helped.

Where does Roku take its time? Is that service up and functioning correct?

(I'm still using firmware 2.9)

Do you have any ideas how to fix the problem?
Thanks in advance!
Dmitry
0 Kudos
2 REPLIES 2
RokuKevin
Visitor

Re: roDateTime gives wrong date and time

We do use network time servers to sync the clock. Please check your network connectivity and reboot your box.

--Kevin
0 Kudos
dmitskevich
Visitor

Re: roDateTime gives wrong date and time

Today in the morning I booted the box, the time is correct now. Thanks!
But it was not working for several days. May be Amazon EC2 Outage affected time servers Roku use?
In any case, now it works...
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.