I use it with the "formatter" binding, not "format" and have not had any problems. I think the formatter I use most often also sets the time to noon in the chosen day to avoid these problems.

Chuck


On Jun 23, 2009, at 12:26 AM, Gustavo Adolfo Pizano wrote:

Yeah for any date...

Im thinking about its because DST, I have been trying to create another NSTimestamp from a GregorianCalendar, adding the d/m/y parameters from the binding, but Im still missing something, because its telling me that the time its 22:00hrs, if I add those 2 more hours to complete the day, I guess all will be fine, and those +2 hourse are because of DST + Central European Time,

mmm.. what should I do then?

I guess the answer its simple but hadn't find it.


thx

G.

On Jun 22, 2009, at 8:48 PM, Chuck Hill wrote:


On Jun 22, 2009, at 5:16 AM, Gustavo Adolfo Pizano wrote:

Hello.

I have 2 AjaxDatePicker, with a format binding to " format ="%Y- %m-%d" and a value to a NSTimeStamp.

When I chose the time and then submit, what I have is the correct Year and month, but the day is one less than the one I choose. i.e : I pickup 12th and the output is an 11th..

What's wrong?

Is something wrong with the component or something Im doing bad, if so, is it something with the initialization of the NSTimestamp?


Is this for any date? This sounds like what happens when you are in Daylight Saving Time and select a date that is not in Daylight Saving Time.

Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to