Bob Gendler

Results 15 comments of Bob Gendler

I fully endorse the lazy when dealing with dates and times and zones and nonsense and copying munkis method is also good. Slack good place?

So I was thinking a config option under optionalFeatures like useLocalTime so people can opt in. I see the line `let dateFormat = "yyyy-MM-dd HH:mm:ss Z"` and `dateFormatterISO8601.timeZone = TimeZone(identifier:...

Yes! Completely that exactly.

I’m not sure how to not be confusing though. But if the admin enables the setting useLocalTime then they kind of should know what they’re getting into? A thought could...

That’s probably very true. I’ll see if I can whip something together this weekend.

Well that was unexpected. Since a date in a configuration profile is an NSDate, it requires something like a Z at the end to be valid. Unless that's changed to...

I figured it would probably accept a string. So if useLocalTime is set, it ignores the Z?

Another stumbling point. Swift only includes these TimeZone abbreviations. And well...there's quite a few more. ``` "BST": "Europe/London", "UTC": "UTC", "CAT": "Africa/Harare", "WIT": "Asia/Jakarta", "IST": "Asia/Kolkata", "PET": "America/Lima", "NZST": "Pacific/Auckland",...

@erikng trying to figure out either a way to query some random thing like even Wikipedia to get that list live or even just get that actual list and make...

@bradtchapman If you do a swift playground, change your location to Nauru in System Settings ``` let timeZone = TimeZone.current.identifier print("Current: \(timeZone)") let TZAD = TimeZone.abbreviationDictionary let timeZoneIdentifiers = TimeZone.knownTimeZoneIdentifiers...