• 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: AJAX Date Picker binding to one day less that the chosen one
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AJAX Date Picker binding to one day less that the chosen one


  • Subject: Re: AJAX Date Picker binding to one day less that the chosen one
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 23 Jun 2009 11:50:04 -0700

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 (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >AJAX Date Picker binding to one day less that the chosen one (From: Gustavo Adolfo Pizano <email@hidden>)
 >Re: AJAX Date Picker binding to one day less that the chosen one (From: Chuck Hill <email@hidden>)
 >Re: AJAX Date Picker binding to one day less that the chosen one (From: Gustavo Adolfo Pizano <email@hidden>)

  • Prev by Date: Re: strange inheritance problem
  • Next by Date: Re: ERXJSOpenWindowSubmitButton
  • Previous by thread: Re: AJAX Date Picker binding to one day less that the chosen one
  • Next by thread: phantom ec problem
  • Index(es):
    • Date
    • Thread