TechDataServices doesn't handle different timezones
--------------------------------------------------- Key: OFBIZ-323 URL: http://issues.apache.org/jira/browse/OFBIZ-323 Project: OFBiz (The Open for Business Project) Issue Type: Bug Components: manufacturing Affects Versions: SVN trunk Reporter: Scott Gray Priority: Minor While working with production runs, I noticed that my production runs have bizarre completion dates like 21.30 hours. The cause is the creation of new Timestamps in TechDataServices.xml being created for GMT time with the JVM then adjusting the timestamp for my locale, so when a production run is estimated to complete at 8.30 in the morning, I was ending up with 9.30 the previous night. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ http://issues.apache.org/jira/browse/OFBIZ-323?page=all ]
Scott Gray updated OFBIZ-323: ----------------------------- Attachment: patch.txt The attached patch corrects the timestamps using Calendar.ZONE_OFFSET and Calendar.DST_OFFSET > TechDataServices doesn't handle different timezones > --------------------------------------------------- > > Key: OFBIZ-323 > URL: http://issues.apache.org/jira/browse/OFBIZ-323 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: manufacturing > Affects Versions: SVN trunk > Reporter: Scott Gray > Priority: Minor > Attachments: patch.txt > > > While working with production runs, I noticed that my production runs have bizarre completion dates like 21.30 hours. The cause is the creation of new Timestamps in TechDataServices.xml being created for GMT time with the JVM then adjusting the timestamp for my locale, so when a production run is estimated to complete at 8.30 in the morning, I was ending up with 9.30 the previous night. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-323?page=comments#action_12437048 ]
Scott Gray commented on OFBIZ-323: ---------------------------------- Correction: TechDataServices.java not .xml > TechDataServices doesn't handle different timezones > --------------------------------------------------- > > Key: OFBIZ-323 > URL: http://issues.apache.org/jira/browse/OFBIZ-323 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: manufacturing > Affects Versions: SVN trunk > Reporter: Scott Gray > Priority: Minor > Attachments: patch.txt > > > While working with production runs, I noticed that my production runs have bizarre completion dates like 21.30 hours. The cause is the creation of new Timestamps in TechDataServices.xml being created for GMT time with the JVM then adjusting the timestamp for my locale, so when a production run is estimated to complete at 8.30 in the morning, I was ending up with 9.30 the previous night. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-323?page=all ]
Jacopo Cappellato reassigned OFBIZ-323: --------------------------------------- Assignee: Jacopo Cappellato > TechDataServices doesn't handle different timezones > --------------------------------------------------- > > Key: OFBIZ-323 > URL: http://issues.apache.org/jira/browse/OFBIZ-323 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: manufacturing > Affects Versions: SVN trunk > Reporter: Scott Gray > Assigned To: Jacopo Cappellato > Priority: Minor > Attachments: patch.txt > > > While working with production runs, I noticed that my production runs have bizarre completion dates like 21.30 hours. The cause is the creation of new Timestamps in TechDataServices.xml being created for GMT time with the JVM then adjusting the timestamp for my locale, so when a production run is estimated to complete at 8.30 in the morning, I was ending up with 9.30 the previous night. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-323?page=all ]
Jacopo Cappellato closed OFBIZ-323. ----------------------------------- Resolution: Fixed Thanks Scott, your patch is in with rev. 451718 As you have probably noticed, the TechDataServices class contains a lot of code that is not so good and should be replaced by more standard methods. > TechDataServices doesn't handle different timezones > --------------------------------------------------- > > Key: OFBIZ-323 > URL: http://issues.apache.org/jira/browse/OFBIZ-323 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: manufacturing > Affects Versions: SVN trunk > Reporter: Scott Gray > Assigned To: Jacopo Cappellato > Priority: Minor > Attachments: patch.txt > > > While working with production runs, I noticed that my production runs have bizarre completion dates like 21.30 hours. The cause is the creation of new Timestamps in TechDataServices.xml being created for GMT time with the JVM then adjusting the timestamp for my locale, so when a production run is estimated to complete at 8.30 in the morning, I was ending up with 9.30 the previous night. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |