• 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: Patched MySQL plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patched MySQL plugin


  • Subject: Re: Patched MySQL plugin
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 29 Sep 2010 19:44:36 -0700

Piling on here.  As Louis pointed out, "NSTimestamps are points in time".  Messing with that in prototypes is a Bad Idea.  You will regret.  Have you crossed a DST boundary yet in your testing? And making one database behave differently than others seems at least unwise.

If you want a calendar date, find a different class.  Joda Time and Apache Commons would be a good place to start looking.  That would make  welcome and very useful contribution to Wonder.


Chuck and hating Java and Dates



On Sep 29, 2010, at 6:58 PM, Ramsey Lee Gurley wrote:
> On Sep 29, 2010, at 9:40 PM, Paul Hoadley wrote:
> On 30/09/2010, at 10:21 AM, Louis Demers wrote:
>>
>>> In my app, when that's the behaviour I want, I zero out the data before writing it to the database so  that subsequent checks for equality will return values...
>>
>> FWIW, I've found that the only clean solution to this problem is to abandon using timestamp types to represent a 1-day-resolution date.  In my experience, at least, zeroing out the time part only works until you start using multiple timezones.
>
> Apple agrees with you Paul.
>
> http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/index.html
>
> Calendar dates should not be represented by NSTimestamp.  The Date prototype is wrong for using it IMHO.
>
> Ramsey
> _______________________________________________
> 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

--
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







Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Patched MySQL plugin
      • From: Ken Anderson <email@hidden>
References: 
 >Patched MySQL plugin (From: Pascal Robert <email@hidden>)
 >Re: Patched MySQL plugin (From: Louis Demers <email@hidden>)
 >Re: Patched MySQL plugin (From: Paul Hoadley <email@hidden>)
 >Re: Patched MySQL plugin (From: Ramsey Lee Gurley <email@hidden>)

  • Prev by Date: Re: Patched MySQL plugin
  • Next by Date: Re: Patched MySQL plugin
  • Previous by thread: Re: Patched MySQL plugin
  • Next by thread: Re: Patched MySQL plugin
  • Index(es):
    • Date
    • Thread