Re: how to handle dates alone
Re: how to handle dates alone
- Subject: Re: how to handle dates alone
- From: Jesse Tayler <email@hidden>
- Date: Fri, 28 Jan 2011 14:16:16 -0500
I think if you look, you'll see there's just a consistent time set on each date in your database but either way, you'll still have to deal with a regular date object - there's no alternative that's all that much better - at least not that I've seen working.
In the end, you'll always have to keep your storage format and interface logic in sync if midnight is to remain midnight.
What's your trouble now? Is your app presenting dates an hour or two off from where they should be?
You'll have to change your timezone, change the data in the database or change your application's (Java) notion of the timezone.
But hey, if you come up with something else, let me know for sure!
All Dates are BAD dates!
On Jan 28, 2011, at 2:00 PM, Theodore Petrosky wrote:
> You say 'these are Java'. yes, but how it relates to the backend. I have invoice dates in my database. it is just a date. no time.
>
> how can I set up Entity Modeler to not use a Timestamp. I tried the Joda Time stuff but it seems that there were problems so it was pulled.
>
> So I need to rephrase. How can I have a date column in my database and have an object in Webobjects that is date only and not care about times and timezones?
>
> Am I clearer?
>
> Ted
>
>
>
> --- On Fri, 1/28/11, David LeBer <email@hidden> wrote:
>
>> From: David LeBer <email@hidden>
>> Subject: Re: how to handle dates alone
>> To: "Theodore Petrosky" <email@hidden>
>> Cc: email@hidden
>> Date: Friday, January 28, 2011, 1:52 PM
>>
>> On 2011-01-28, at 1:49 PM, Theodore Petrosky wrote:
>>
>>> so I was out the other night with the really h (sorry
>> wrong forum)
>>>
>>> How are people handling dates with no timezone (and no
>> time, just the date alone)? I really want to use the date
>> column type and not care about the time nor zone but I
>> haven't figured out a way.
>>>
>>> I just got bitten with a timezone problem when
>> shifting my app to a different box.
>>
>>
>>> There must be a prescribed and easier way.
>>
>> Really? These ARE java dates we are talking about here.
>>
>> ;david
>>
>> --
>> David LeBer
>> Codeferous Software
>> 'co-def-er-ous' adj. Literally 'code-bearing'
>> site: http://codeferous.com
>> blog: http://davidleber.net
>> profile: http://www.linkedin.com/in/davidleber
>> twitter: http://twitter.com/rebeld
>> --
>> Toronto Area Cocoa / WebObjects developers group:
>> http://tacow.org
>>
>>
>>
>>
>>
>
>
>
> _______________________________________________
> 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