NSDate bug
NSDate bug
- Subject: NSDate bug
- From: email@hidden (mikevannorsdel)
- Date: Mon, 26 Nov 2001 17:45:56 -0700
I believe I found a bug in NSDate. I was trying to get the epoch value
for the current date doing:
unsigned long time = [[NSDate date] timeIntervalSince1970];
The correct epoch should be 1006821791 (Mon Nov 26 17:43:11 MST 2001).
But the above returns 1104019824 (Sat Dec 25 17:10:24 MST 2004). Is
this a known issue? Or did I miss something?