• 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: NSTimestampFormatter DECREMENTING 'day' on each pass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimestampFormatter DECREMENTING 'day' on each pass


  • Subject: Re: NSTimestampFormatter DECREMENTING 'day' on each pass
  • From: WebObjects <email@hidden>
  • Date: Mon, 15 May 2006 14:25:52 -0700
  • Thread-topic: NSTimestampFormatter DECREMENTING 'day' on each pass

Would this mean I need to set some kind of environmental variable to tell it
"Pacific Daylight Time" so it's not defaulting to some time zone I'm unaware
of?  I'm not clear on where or how to bind the field submitted to a
timezone.

I output the date it's sending to the EC to save, and get "1919-02-24
08:00:00 Etc/GMT" - showing 'GMT' as the timezone.  I'm in Los Angeles - a
far way from the GMT.

I appreciate the help!


on 5/15/06 14:06, Randy Wigginton at email@hidden wrote:

> This sounds like a timezone issue.  Display the timezone of the date, and
> which timezone you are in, and also include the hours.  Most likely it is
> "rounding down" a day each time.
>
> -----Original Message-----
> From: webobjects-dev-bounces+cawineguy=email@hidden
> [mailto:webobjects-dev-bounces+cawineguy=email@hidden] On
> Behalf Of WebObjects
> Sent: Monday, May 15, 2006 5:02 PM
> To: WebObjects-List Apple
> Subject: NSTimestampFormatter DECREMENTING 'day' on each pass
>
> I have a field for "date of birth" with uses the following formatter
> (below).  If I make a new entry, ie. "02/13/1913" everything works fine.
> However, when I resubmit the form, not changing the value (perhaps to change
> other values) the date mysteriously decrements, do the example below will
> become "02/12/1913".
>
> clueless,
> -Bill
>
> protected static final dateFormatter = new NSTimestampFormatter("%m/%d/%Y");
>
>     public NSTimestampFormatter dateFormatter() {
>         return Application.dateFormatter;
>     }
>
>
>  _______________________________________________
> 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
>


 _______________________________________________
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

  • Follow-Ups:
    • Re: NSTimestampFormatter DECREMENTING 'day' on each pass
      • From: Art Isbell <email@hidden>
  • Prev by Date: RE: NSTimestampFormatter DECREMENTING 'day' on each pass
  • Next by Date: Re: NSTimestampFormatter DECREMENTING 'day' on each pass
  • Previous by thread: RE: NSTimestampFormatter DECREMENTING 'day' on each pass
  • Next by thread: Re: NSTimestampFormatter DECREMENTING 'day' on each pass
  • Index(es):
    • Date
    • Thread