Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Torres90
Posts: 102
Registered: ‎01-12-2011
My Device: Blackberry Playbook

Getting date and time from internet

Hi guys, How do I get the current time and date from the internet?

 

I'm aware that inside ActionScript there's a Date() function , but it only get the date inside the device, and sometimes user might change the device's date in order to overcome time-based games.

Click "like" if my reply helps and click "Accept as Solution" if it solves your problem!

twitter @Twopinstudio
my vendor page https://appworld.blackberry.com/webstore/vendor/7126/?lang=en
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Getting date and time from internet

You have to call to your server (some added script) that can return the date on the server and then adjust for time zone. Since the time zone the user is in might be different then the time zone of the server.