SubZane wrote:
> I've used JSLint and removed the errors. It now works in IE7. Dunno
> about Safari tho since I don't have it =/

FWIW, it "works" in Safari 2.0.4 (OS X 10.4).

> I still need to validate the input data tho

Why not just let users enter the date themselves and validate it
onchange or onsubmit?  You also need to validate the time - you don't
want them selecting a time that didn't or wont exist when going into
daylight saving, and you need rules on how do deal with times that
exist twice, like coming out of daylight saving.  Business rules are
required to sort out how to handle them.  It is similar to the issue of
adding 1 year to 29-Feb-2008 - is the answer 28-Feb-2009 or
01-Mar-2009?  There is no general rule.

Working with date and time is not trivial.  :-)

-- 
Fred


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to