Open macMikey opened 1 year ago
There's a crossplatform timezone library already. Mark Waddingham just pointed this out to me last week as part of an answer to a different question.
mark, i heard that comment, too. do you have more info on it?
I was wondering how to attach a binary file to an extension and Mr Waddingham pointed me to the timezone library which has the necessary binaries in a "code" subfolder (and appropriate platform subfolders under that). As far as the tz library itself, you can't automatically determine your local timezone, but once you've got it you can convert to UTC, perform calculations, and convert back to local time again. The dictionary lists three functions in the library.
The timezone library uses some outdated timezones. https://quality.livecode.com/show_bug.cgi?id=23012
fun
There was a discussion on the use list about the system time zone. i wonder if we have native api's that would be hookable, and a good example for everyone.