Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSTimeZone localTimeZone vs systemTimeZone

What is the difference between [NSTimeZone localTimeZone] and [NSTimeZone systemTimeZone]?

like image 889
EmptyStack Avatar asked Jun 25 '11 12:06

EmptyStack


1 Answers

According to the NSTimeZone reference of iOS, the systemTimeZone represents the timezone used by the system (device) itself.

The localTimeZone returns an object that represents the current default time zone for the application. The application can change its default timezone via the setDefaultTimeZone call.

There are no exposed Cocoa APIs to change the system time zone, or to change another application's time zone.

like image 60
Mat Avatar answered Sep 17 '22 15:09

Mat