[jira] Created: (OFBIZ-323) TechDataServices doesn't handle different timezones

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-323) TechDataServices doesn't handle different timezones

Nicolas Malin (Jira)
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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-323) TechDataServices doesn't handle different timezones

Nicolas Malin (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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-323) TechDataServices doesn't handle different timezones

Nicolas Malin (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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-323) TechDataServices doesn't handle different timezones

Nicolas Malin (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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-323) TechDataServices doesn't handle different timezones

Nicolas Malin (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