Hi Lachlan,

Hi there,

On 28/10/2005, at 6:16 PM, Dev WO wrote:


Just a short addition to this thread,
I'm trying to use this formatter (to get a valid date declaration for an RSS (RDF) feed): NSTimestampFormatter dateTimeFormatter = new NSTimestampFormatter ( "%Y-%m-%dT%H:%M%z", new DateFormatSymbols( Locale.ENGLISH ) );

But I get an exception because the %z
In fact the NSTimestamp is GMT, when I print it I get:
2005-10-25 08:28:05 Etc/GMT

Reading the documentation, it says it would default to the local system timezone, but the null pointer exception make me think it doesn't.

Can I set a default timezone for the application using: setDefaultTimeZone in the application constructor? if it's the correct way to handle that...


You might find my recently reposted article on this subject helpful:
    http://keyvaluecoding.com/
yes this is really what I needed, I'm actually reading it:)

An example project is linked...
THe link doesn't seem to work:(

with regards,

Thanks and have a nice week end

Xavier

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

This email sent to [email protected]

Reply via email to