Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1485

Use DateTime class to calculate service renew dates

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The DateTime class should allow us to calculate future dates from the term+period combination while saving date timestamps relative to the current timezone's daylight savings time.

      For example, currently, a renew date of 2014-10-22 07:00:00 UTC in a -7 timezone renews next on a month term as 2014-11-22 07:00:00 UTC, but the local timezone had changed to -8 during that period. Using DateTime, that would be calculated as 2014-11-22 08:00:00 UTC instead.

      I think we may be able to update the Date helper to use the DateTime library. Then where the service renews, make sure we use the Date helper.

        Issue Links

          Activity

          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          The \Minphp\Date\Date class was updated to use the DateTime library, however, I see no need to update the service renew date calculation at this time, as I am unable to replicate the behavior described in the task. However, CORE-2378 should update the date modifications throughout the system.

          Show
          tyson Tyson Phillips (Inactive) added a comment - The \Minphp\Date\Date class was updated to use the DateTime library, however, I see no need to update the service renew date calculation at this time, as I am unable to replicate the behavior described in the task. However, CORE-2378 should update the date modifications throughout the system.

            People

            • Assignee:
              tyson Tyson Phillips (Inactive)
              Reporter:
              tyson Tyson Phillips (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile