Re: NSTimestamp
Re: NSTimestamp
- Subject: Re: NSTimestamp
- From: David Teran <email@hidden>
- Date: Mon, 10 Oct 2005 11:04:54 +0200
Hi Colin,
I have an Entity that has a column of type NSTimestamp. I’m using PostgreSQL and the external type for the object’s column is set to timestamp. I’m also using Project Wonder in this project.
Are you using the JavaPostgresql plugin, too? When I save the entity to the database, the date portion of the date is saved fine, but the time portion always defaults to 00:00:00.
This depends on how you set the values from the NSTimestamp: if you use a WOTextField and set the formatter to "%d.%m.%y" then the time is set to what you get. If you do just something like 'new NSTimestamp()' in you java code then the hour, minute and seconds as well as fractions should be not 0, unless its 00:00:00.000 which is quite unlikely and only happens ones a day. I’ve tried changing the value type to ‘T’ in EOModeler for this column, but nothing is working.
T must be set as value type.
regards, David |
_______________________________________________
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: | |
| >NSTimestamp (From: Colin Shreffler <email@hidden>) |