Forum Discussion

dmitskevich's avatar
15 years ago

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

2 Replies

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

    --Kevin
  • 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...