Re: NSLog displays inconsistent format for NSDate

2019-08-31 Thread Alex Zavatone via Cocoa-dev
Use an NSDateFormatter. Use a format string with at the end ZZZ or if you want the time zone offset added. > On Aug 20, 2019, at 2:50 PM, Carl Hoefs via Cocoa-dev > wrote: > > When printing out an NSDate using NSLog from within Xcode I get: > > "Tue Aug 20 12:32:40 2019" > > When th

Re: NSLog displays inconsistent format for NSDate

2019-08-31 Thread Carl Hoefs via Cocoa-dev
> On Aug 31, 2019, at 2:51 AM, Allan Odgaard via Cocoa-dev > wrote: > > On 31 Aug 2019, at 2:49, Carl Hoefs via Cocoa-dev wrote: > >> Same result if I run it as a system daemon. So as you suggest it seems there >> could be some sort of environment sensitivity going on. If only I knew what >

Re: NSLog displays inconsistent format for NSDate

2019-08-31 Thread Allan Odgaard via Cocoa-dev
On 31 Aug 2019, at 2:49, Carl Hoefs via Cocoa-dev wrote: Same result if I run it as a system daemon. So as you suggest it seems there could be some sort of environment sensitivity going on. If only I knew what env var to set in the shell... UTC really isn't what I'm looking for. The issue ap