Question

enter image description here

Why it shows two different dates in NSLog and in preview box?

Output:

  1. NSLog - 2014-05-07 19:07:57 IST
  2. Preview box - 2014-05-07 13:37:57 +0000
Was it helpful?

Solution

The dates are in 2 different time zones.

IST = India Standard Time +0000 = Greenwich Mean Time or Unknown time zone. It means that for more info documentation, it does not get time from your local computer/Xcode setting.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top