Retrieve the date from an external source.

Tore Nilsen tore.nilsen at me.com
Tue Nov 29 09:58:52 EST 2016


I need to retrieve the date from an external source, in order to bypass any changes to the date settings on the users computer. This is to ensure that a user cannot start an event until the proper date. (A digital advent calendar) I was foolishly thinking that the internet date was what I was looking for, but it is just another way to format the internal date as set by the user. Therefore, getting the internet date does not bypass any changes to the machines local settings. 

Information about the proper date for each event is stored as a custom property of different images in the application. This property is in the form of localized date, and is converted to seconds for comparison with the actually date, which of course is also converted to seconds. Everything here works as expected, but changing the computers date settings will allow the user to override the restraints in the script. I therefore need to get the date from a source outside the control of the user. (The application is a desktop standalone.)

 I am in a bit of a hurry (deadline on Thursday this week) and I can not seem to find any solutions searching for it in the usual places. I am unfamiliar with retrieving data from servers and services, so I am unfortunately stuck at the moment. Any help will much appreciated.

Regards 
Tore Nilsen



More information about the use-livecode mailing list