Rashmikapil1
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019
12:24 AM
roDateTime - wrong time stamp in VPN
Hi,
When connect to VPN network (US) we are getting wrong timestamp for
return CreateObject("roDateTime").asSeconds(),
Any ways to solve this??
When connect to VPN network (US) we are getting wrong timestamp for
return CreateObject("roDateTime").asSeconds(),
Any ways to solve this??
5 REPLIES 5


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019
03:12 PM
Re: roDateTime - wrong time stamp in VPN
"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
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019
08:53 PM
Re: roDateTime - wrong time stamp in VPN
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
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


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2019
11:21 AM
Re: roDateTime - wrong time stamp in VPN
"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
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2019
08:45 PM
Re: roDateTime - wrong time stamp in VPN
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..
So date/time setting is required if its not displayed on device...
Thank You..
Lindaawilsoon
Newbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2019
04:21 AM
Re: roDateTime - wrong time stamp in VPN
Thanks for resolving this issue, I really search and get this page on Search Engine, you guys really amazing skills, I cancel my VPN subscription for Roku because of this issue, but now again I subscribe.