[ https://issues.apache.org/jira/browse/TUSCANY-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583587#action_12583587 ]
Adriano Crestani commented on TUSCANY-1659: ------------------------------------------- These failures have nothing to do with Linux at all. It's failing because when the Date object is formatted by a SimpleDateObject, the time zone is formatted as GTM +-HH:mm format, and not as the abbreviation format (for example: PDT). However, the DataHelperImpl.toDate() is expecting a time zone formatted only as abbreviation, probably because the sdo date format defines it on its spec, but it's not really clear about it. Unfortunately, it seems you cannot define whether the time zone is formatted as GMT format or abbreviation format. It seems env-dependent, because I'm getting the same problem on Windows XP. On XP, the problem seems to be a bug reported at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6390869. It happens when you check or not the option 'Automatically adjust clock for daylight saving changes' on XP date/time settings, when it's checked, the time zone is formatted as abbreviation, otherwise it's formatted as GMT format. I think there are 2 solutions, I could replace the GMT +-HH:mm format by the abbreviation format on the String returned by the SimpleDateFormat.format() method, but it would fix only the testcases, and each SDO user will still get trouble with it. Or I can modify the toDate() method to also accept the GMT format, but I'm not sure it would be according SDO spec. I have raised some question about whether SDO should accept GMT format or not at: http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg29706.html Adriano Crestani > SDO DateConversion test cases fail under linux > ---------------------------------------------- > > Key: TUSCANY-1659 > URL: https://issues.apache.org/jira/browse/TUSCANY-1659 > Project: Tuscany > Issue Type: Bug > Components: Java SDO Implementation > Affects Versions: Java-SDO-Next > Environment: Linux Ubuntu 7.0.4 > Reporter: Luciano Resende > Assignee: Adriano Crestani > Fix For: Java-SDO-Next > > Attachments: tuscany-1659.tgz > > > The following tests are failing under revision #571238 > Tests in error: > testConversionsFromDate(org.apache.tuscany.sdo.test.DateConversionTestCase) > > testConversionsFromDateTime(org.apache.tuscany.sdo.test.DateConversionTestCase) > > testConversionsFromDuration(org.apache.tuscany.sdo.test.DateConversionTestCase) > testConversionsFromMonth(org.apache.tuscany.sdo.test.DateConversionTestCase) > > testConversionsFromMonthDay(org.apache.tuscany.sdo.test.DateConversionTestCase) > testConversionsFromYear(org.apache.tuscany.sdo.test.DateConversionTestCase) > > testConversionsFromYearMonth(org.apache.tuscany.sdo.test.DateConversionTestCase) > > testConversionsFromYearMonthDay(org.apache.tuscany.sdo.test.DateConversionTestCase) > Looks like working ok in windows. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]