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

          tyson Tyson Phillips (Inactive) created issue -
          cody Cody Phillips (Inactive) made changes -
          Field Original Value New Value
          Story Points 3
          admin Paul Phillips made changes -
          Fix Version/s 4.0.0-b2 [ 11001 ]
          Fix Version/s 4.0.0-b1 [ 10603 ]
          admin Paul Phillips made changes -
          Fix Version/s 4.0.0-b3 [ 11002 ]
          Fix Version/s 4.0.0-b2 [ 11001 ]
          admin Paul Phillips made changes -
          Fix Version/s 4.0.0-b4 [ 11003 ]
          Fix Version/s 4.0.0-b3 [ 11002 ]
          admin Paul Phillips made changes -
          Fix Version/s 4.0.0-b5 [ 11004 ]
          Fix Version/s 4.0.0-b4 [ 11003 ]
          admin Paul Phillips made changes -
          Fix Version/s 4.0.0-b6 [ 11005 ]
          Fix Version/s 4.0.0-b5 [ 11004 ]
          admin Paul Phillips made changes -
          Fix Version/s 4.0.0-b7 [ 11009 ]
          Fix Version/s 4.0.0-b6 [ 11005 ]
          admin Paul Phillips made changes -
          Fix Version/s 4.1.0 [ 11007 ]
          Fix Version/s 4.0.0 [ 11009 ]
          tyson Tyson Phillips (Inactive) made changes -
          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.
          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.
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.1.0 Sprint 2 [ 39 ]
          tyson Tyson Phillips (Inactive) made changes -
          Assignee Tyson Phillips [ tyson ]
          tyson Tyson Phillips (Inactive) made changes -
          Assignee Tyson Phillips [ tyson ]
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue is duplicated by CORE-2378 [ CORE-2378 ]
          tyson Tyson Phillips (Inactive) made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 4.1.0 [ 11007 ]
          Resolution Duplicate [ 3 ]

            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