NSDateFormatter
NSDateFormatter
- Subject: NSDateFormatter
- From: Julien Guimont <email@hidden>
- Date: Thu, 18 Jul 2002 08:22:06 -0700 (PDT)
Hello!
I have a little problem with NSDate and NSDateFormatter. To make a long story short: I have a text field using a nsdateformatter which is "%e" for day in number. I also have a popup to switch the format between day (the default) and day of the week ("%A"). So in my code I check which menu item is selected and change the format consequently and force the update by setting the object value to [NSCalendarDate calendarDate].
The problem is when the format is in day of the week (sunday, monday...). When i force update the text is like "Wednesday" (if the current date is a wednesday;), but when i click the field and press enter to validate the thing... it switches to Tuesday... of the other week. Even if i enter sunday it switches to tuesday. I saved the object value of the field to discover that it saved the tuesday date even when the field is still displaying wednesday.
It seems that the date is somewhat changed in the meantime but I have no idea where or when cuz i do not touch it in my code.
Do you have any ideas?
Thanks
Julien Guimont
email@hidden or email@hidden by september 30
www.juggysoft.com
_______________________________________________
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.