How to get time and date from remote server

Hi,

How to get time and date from remove server ?

Lets say we want to give player a bonus on every Friday. This would be one-time bonus so to get another one player need to wait a week.

Regards,
Tom [import]uid: 111283 topic_id: 26254 reply_id: 326254[/import]

Why would you need to get this from a remote server?

You can use the function [lua]os.date( “%A” )[/lua] to get the day of the week from the current device time and some local storage to flag the bonus as received if you’re concerned about cheating.

If there’s some other requirement for a remote server to be involved, I’m sure there are any number of PHP scripts that will return the server’s time, and you can use the return value in the os.date function mentioned above. [import]uid: 44647 topic_id: 26254 reply_id: 106418[/import]