•  
      request #4568 Problem with Date field if it was created with default value "Today"
    Infos
    #4568
    Patricia Carrasco (pcar)
    2013-10-17 11:59
    2013-07-24 17:27
    4934
    Details
    Problem with Date field if it was created with default value "Today"
    In Tuleap if a date field was created with a Default value of "Today", when an artifact is submitted in the connector, it decrements by one day the value of the date.
    Mylyn
    6.2
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Emilio Palmiero (empa)
    Stage
    Empty
    Verified
    Empty
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    It was a bit difficult to find out the source of problem on this issue but I think that I have found it. The time returned by Tuleap (on https://tuleap.net) is a timestamp using the timezone GMT, on my computer, Java is using CEST (Central European Summer Time, http://www.timeanddate.com/library/abbreviations/timezones/eu/cest.html) which is technically correct. As a result, the time that I was manipulating on my computer was, for example, "Mon Sep 30 00:00:00 CEST 2013" and the timestamp that I was submitting was believed by Tuleap to be "Sun Sep 29 22:00:00 GMT 2013" since there is a gap of two hours between those two time zones.

    We need to convert the time selected to the time zone used by Tuleap before submission. We need to know the timezone used by the Tuleap instance to which we are connected first. I'll talk with Enalean to see how we can proceed on this issue.

    • Status changed from New to Verified
    User avatar
    @devs: check the value converted in the TuleapArtifact and check what is sent in TuleapSoapConnector#updateArtifact(...).
    User avatar
    Eclipse 4.2.2
    Tuleap: 6.2.99.34
    Connector: Mylyn Tasks Connector: 1.1.1.I20130722-1440
    User avatar
    Additional testing shows that even if the field was created with no default value, the value is still decremented by one day.