Sunday, 11 August 2013

Compare iOS Time Zone Rules

Compare iOS Time Zone Rules

If the user is in Eastern time, I don't want to display "EST" or "EDT" but
if they are not, I do want to display it.
Is there an easy way to compare TimeZone rules in iOS?
[NSTimeZone localTimeZone] returns America/Indianapolis, but I just want
to know if it is eastern.
Comparing data does not work, do I just compare secondsFromGMT?
EDIT Comparing offsets does seem to work, but I don't know if it is going
to cause problems later?

No comments:

Post a Comment