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.
Question
Why it shows two different dates in NSLog
and in preview box?
Output:
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.