Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7860901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:29:08+00:00 2026-06-02T22:29:08+00:00

On iOS 5 (simulator and device), when I tried to parse a date string

  • 0

On iOS 5 (simulator and device), when I tried to parse a date string with timezone ICT, it just returns (null). One strange thing is that this timezone used to work fine in iOS4.3.

NSString *inputDateStr = @"Fri, 06 Apr 2012 13:00:00 ICT";
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss zzz"];
NSDate *inputDate = [df dateFromString:inputDateStr];
NSLog(@"--- INPUT %@ -> %@ ---",inputDateStr, inputDate);

--- INPUT Fri, 06 Apr 2012 13:00:00 ICT -> (null) ---

But when I tried other timezone, like PST, it works !?

NSString *inputDateStr = @"Fri, 06 Apr 2012 13:00:00 PST";

--- INPUT Fri, 06 Apr 2012 13:00:00 PST -> 2012-04-06 21:00:00 +0000 ---

I printed out [NSTimeZone abbreviationDictionary] and still see ICT in there. So this timezone should be still valid. So, why do I get (null)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T22:29:10+00:00Added an answer on June 2, 2026 at 10:29 pm

    Time zone names are locale specific and can mean something else in different languages or not exist at all.

    eg.

    ICT Îles Crozet Time +4
    ICT Indochina Time +7

    Use GMT+XX for a stable functionality.

    EDIT:

    See this link for more information about time zones: http://unicode.org/repos/cldr/trunk/docs/web/tr35.html#Time_Zone_Fallback

    Note the section is called “Time Zone Display Names”. These names were never intented to be used for parsing. They are meant to be displayed (e.g. as the result of the ZZZ pattern).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried it both on an actual device (iPad) and the iPhone simulator
The iOS simulator is issuing a SIGABRT signal attributed to main.m. I am confused
I'm trying to get a copy of the iOS simulator that includes an iPad
I recently started using Xcode 4.2 and the iOS 5 simulator. When I update
I'm developing an iOS app. Its working properly on simulator. I'm using phonegap and
Using the iOS Simulator and viewing a html page with a text box that
Since 5.0, iOS simulator has StoreKit support so you can debug your In-App purchases
I have a strange problem. I have an iPad with iOS 5.0.1 (9A405) and
I am currently developing an in device (not simulator) monitoring system for an iPad
I have an iPod touch running iOS 4.2.1, and a simulator running iOS 4.2.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.