Hi all,
after reading a few posts about SetTimeZone and similar functions I still can't understand the way I should use them in my app.
App goal: show a countdown from a date set in the future to today date.
Problem: the date in the future is fixed in code and represents a real event to be held in a specific location, whereby today date (and time) is local to the user of the app.
What functions am I expected to use in order to have the "right" time difference between dates taking in account both locations?
To be clearer:
Event held in Rome, Italy (UTC+1) on 2013-12-31 10:00
App user being in Rome,Italy launching my app on 2013-12-28 09:00
Countdown should shows: 3 days and 1hour left
But a second user launching the app at the same time but in New York, USA (UTC-5) should read the same irrespective of his clock showing 4 AM (i.e. his local time).
Can you help please?
TIA
after reading a few posts about SetTimeZone and similar functions I still can't understand the way I should use them in my app.
App goal: show a countdown from a date set in the future to today date.
Problem: the date in the future is fixed in code and represents a real event to be held in a specific location, whereby today date (and time) is local to the user of the app.
What functions am I expected to use in order to have the "right" time difference between dates taking in account both locations?
To be clearer:
Event held in Rome, Italy (UTC+1) on 2013-12-31 10:00
App user being in Rome,Italy launching my app on 2013-12-28 09:00
Countdown should shows: 3 days and 1hour left
But a second user launching the app at the same time but in New York, USA (UTC-5) should read the same irrespective of his clock showing 4 AM (i.e. his local time).
Can you help please?
TIA