At Wednesday 12/12/2007 01:39 PM, you wrote:
Does 01/11/08 have a different result?  What about 2008-01-11?


A 4-digit year is handled correctly. Problems occur with a 1 or 2-digit year , or no year at all.

Actually just found I found that with 1/11/08 (or 01/11/08) the date is set to 1/11/1908, which RT displays as 'not set' in the web interface. RT (and the time parsing module) by default assumes an 'ambiguous' year is in the past - 08 is interpreted to be 1908.

You can change the setting to assume future dates, but that would convert '12/10' to '12/10/08' which might not be what you want. Also I found that using the 'prefer future' setting gives seriously odd results for some dates - '12/10/99' comes out as 1963-11-03 .




_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch today. Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com

Reply via email to