Bugs item #1050226, was opened at 2004-10-19 13:24 Message generated for change (Comment added) made by nihility You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1050226&group_id=22866
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Diesler (tdiesler) Assigned to: Thomas Diesler (tdiesler) Summary: missing time zone in xs:date representation Initial Comment: The DateSerializer does not include the time zone ---------------------------------------------------------------------- Comment By: Jason Greene (nihility) Date: 2004-11-16 22:19 Message: Logged In: YES user_id=617156 I didn't get to this till late this evening. I need to finish adding a testsuite test, and then i will submit the patch early tommorow. -Jason ---------------------------------------------------------------------- Comment By: Jason Greene (nihility) Date: 2004-11-16 09:07 Message: Logged In: YES user_id=617156 There is a possible side effect if we implement this. According to the spec, xsd:dates without timezones are treated as absolute dates, while xsd:dates with timezone information are always adjusted. So if someone where to pass a truncated date (like a java.sql.Date, or perhaps a date constructed via calendar values), and they are in a positive UTC offset timezone, the date would role back a day when the conversion is performed. The date change can be prevented if the time is set to noon, since a normalized timezone offset is always within 12 hours. However, when converting between a positive UTC offset timezone, and a negative UTC offset timezone, this change can not be prevented. An example would be noon US/Central CST (-06:00) converted to Asia/Hong_Kong HKT (+08:00) would result in the date being adjusted one day forward. The user, however, could of course pick a mutual conversion timezone if they desired like UTC to work around this problem. I will proceed with the patch assuming this is side effect is ok. -Jason ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1050226&group_id=22866 ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development