Rich,
Rich Dersheimer wrote:
Quote: "AFAIK, Ancient Lady's workaround only works for one pre-coded timezone, it has no way to tell what timezone the device is set to. "
I assume we're talking about these function here (the updated ones in the second post):
http://forum.thegamecreators.com/?m=forum_view&t=196655&b=41
Ancient Ladys time functions are quite general purpose.
They contain no hard-coded offsets. Although, the function does expect the local time offset as a parameter (you might say that is hard-coded, if you hard-code it in YOUR program as such.)
Since there is no Tier 1 basic command to GET the local time offset, you pretty much have to ask the user - or otherwise you ARE locking down the time offset as coded in your program; in which case the time will seem fine in ones own local time, but it'll be off everywhere else, obviously.
And that's not professional.
Most devices (when properly configured) do know what the user's local time offset is...
So, what we need, is a Tier1 command to get this offset.
Or a function that returns time/date already adjusted to local time. (Preferably both, though!)
AgentSam
PS. As a new user, my posts appear on the forums with a huge delay due to the "pending approval" thingy.. so someone might have already replied to this.