• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSShortTimeDateFormatString still supported?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSShortTimeDateFormatString still supported?


  • Subject: Re: NSShortTimeDateFormatString still supported?
  • From: Jens Bjerrehuus <email@hidden>
  • Date: Sat, 16 Aug 2003 13:24:44 +0200

Hello Mark,

No, you are not alone with this experience. It seems that the user defaults do not correctly reflect the settings in the International preference pane.

My experience is that the NSDateFormatString and the NSShortDateFormatString behave correctly. These two strings do reflect the settings in my preferences. But the NSTimeDateFormatString and the NSShortTimeDateFormatString seems to not change at all when I change my preferences. Finally, the NSTimeFormatString does seem to change between 12/24 hour clocks, but seems to forget the AM/PM postfix.

Here are the strings I get in a Danish locale:

NSDateFormatString = '%A %e. %B %Y'
NSShortDateFormatString = '%d/%m/%y'
NSTimeDateFormatString = '%A, %B %d, %Y %H:%M:%S %Z'
NSShortTimeDateFormatString = '%d %b %Y %I:%M %p'
NSTimeFormatString = '%1H:%M:%S'

and the corresponding strings in a US locale:

NSDateFormatString = '%A, %B %e, %Y'
NSShortDateFormatString = '%1m/%e/%y'
NSTimeDateFormatString = '%A, %B %d, %Y %H:%M:%S %Z'
NSShortTimeDateFormatString = '%d %b %Y %I:%M %p'
NSTimeFormatString = '%1I:%M:%S'

It seems clear to me that this cannot be the intended behaviour, since it makes it very hard for applications to correctly use the users preferences for date and time presentation. I'm going to file a bug on radar against this behaviour and see what Apple has to say about it.

Kind regards
Jens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSShortTimeDateFormatString still supported? (From: "Mark J. Lilback" <email@hidden>)

  • Prev by Date: Re: [OT] Extending Ruby and Java in Mac OS X
  • Next by Date: Re: Recent Items
  • Previous by thread: NSShortTimeDateFormatString still supported?
  • Next by thread: fontManager:willIncludeFont: is never called
  • Index(es):
    • Date
    • Thread