Your Digital Media Has Never Looked So Good

 
Rashmikapil1
Topic Author
Posts: 5
Joined: Tue Dec 18, 2018 9:26 pm

roDateTime - wrong time stamp in VPN

Mon Jan 07, 2019 1:24 am

Hi,

When connect to VPN network (US) we are getting wrong timestamp for 
return CreateObject("roDateTime").asSeconds(),

Any ways to solve this??
 
User avatar
RokuKC
Posts: 308
Joined: Wed Sep 10, 2014 10:44 am
Location: Roku HQ

Re: roDateTime - wrong time stamp in VPN

Mon Jan 07, 2019 4:12 pm

Rashmikapil1 wrote:
Hi,

When connect to VPN network (US) we are getting wrong timestamp for 
return CreateObject("roDateTime").asSeconds(),


What exactly do you mean by wrong? Note that the value should be in UTC.

Is the date/time display in the Roku UI correct?
 
Rashmikapil1
Topic Author
Posts: 5
Joined: Tue Dec 18, 2018 9:26 pm

Re: roDateTime - wrong time stamp in VPN

Mon Jan 07, 2019 9:53 pm

The roDateTime Object is created and if we display the current time its showing old time...
e.g. 
dateTime = CreateObject("roDateTime")
print "time = “dateTime.AsDateString("long-date")
The output is :  time = Thursday November 29, 2018
The above is wrong date.

This happens only when connected to US VPN. In local network the date is correct
 
User avatar
RokuKC
Posts: 308
Joined: Wed Sep 10, 2014 10:44 am
Location: Roku HQ

Re: roDateTime - wrong time stamp in VPN

Tue Jan 08, 2019 12:21 pm

Rashmikapil1 wrote:
The roDateTime Object is created and if we display the current time its showing old time...
e.g. 
dateTime = CreateObject("roDateTime")
print "time = “dateTime.AsDateString("long-date")
The output is :  time = Thursday November 29, 2018
The above is wrong date.

This happens only when connected to US VPN. In local network the date is correct


OK, but you didn't answer my question... is the date/time shown in the Roku UI correct?
E.g., if you go to Settings > System > Time > Time zone > Set automatically, does it have correct information?
(You can also see the date in Settings > System > System update, pick Check now and look at Last checked date/time).

I doubt this has anything to do with roDateTime. It seems more likely that your VPN is blocking Roku network services.
 
Rashmikapil1
Topic Author
Posts: 5
Joined: Tue Dec 18, 2018 9:26 pm

Re: roDateTime - wrong time stamp in VPN

Tue Jan 08, 2019 9:45 pm

The date/time was not displaying on roku device (after factory reset). After setting the date/time it is working correctly now. Thanks...
So date/time setting is required if its not displayed on device... 

Thank You..

Who is online

Users browsing this forum: No registered users and 4 guests