objective c - Issue with Caracas time zone in iOS -


i testing different time zones utc offsets in application. , code working timezones. have issue caracas.

code shows utc offset.

nsdateformatter *dateformatter = [[nsdateformatter alloc] init];  nslocale *enusposixlocale = [nslocale localewithlocaleidentifier:@"en_us_posix"]; [dateformatter setlocale:enusposixlocale];  //this nsdateformatter return timezone in format "utc+xx:xx" [dateformatter setdateformat:@"'utc'xxxxx"];  nsstring *formattedtimezone = [dateformatter stringfromdate:[nsdate date]];  return formattedtimezone; 

in ukraine receive utc+03:00 , correct. in caracas receive utc-04:00 real offset utc-04:30.

question why missing -30 minutes in caracas?

this not programming problem, caracas(venezuela) timezone has changed recently.

utc-04:00 correct right now.

presidents of venezuela had changed couple of times:

  • utc-04:30 used since 2007.
  • it changed again utc-04:00.

http://www.bloomberg.com/news/articles/2016-04-14/maduro-orders-time-zone-change-to-battle-venezuela-power-crisis


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -