Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29136

Displayed Date Field value changes when changing php.ini timezone

    Details

    • Type: Improvement Improvement
    • Status: InputQ
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0, 1.13.2, 1.7.7
    • Fix Version/s: Customer request
    • Component/s: Field types
    • Labels:
      None

      Description

      When changing the timezone in php.ini file to the west, it affects displaying the date in the front-office (the date changes to the day before). The user would expect the date to stay the same no matter what if he uses the Date Field Type.
      The issue only happens when displaying the value in the front-office. Back-offices on tested versions (1.7.7, 1.13.2, 2.1.0) seem unaffected.

      Steps to reproduce

      1. Create new eZ Platform installation.
      2. Create a Content Type with a Date Field Definition.
      3. Create a Content Object of this Content Type, giving it a date value, and publish it.
      4. Navigate to this Content Object in the front-office. Confirm that it displays correct date.
      5. Open your php.ini, and edit the entry, for instance:

        date.timezone = "America/Puerto_Rico"
        

        instead of whichever entry value you have there already.

      6. Navigate to this Content Object in the front-office. It will now display the incorrect date (the date from the day before)

        Issue Links

          Activity

          Jacek Foremski (Inactive) created issue -
          Jacek Foremski (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Jacek Foremski (Inactive) made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Jacek Foremski (Inactive) made changes -
          Link This issue relates to CS-6770 [ CS-6770 ]
          Jacek Foremski (Inactive) made changes -
          Affects Version/s 2.1.0 [ 14851 ]
          Jacek Foremski (Inactive) made changes -
          Affects Version/s 1.7.7 [ 14866 ]
          Jacek Foremski (Inactive) made changes -
          Description When changing the timezone in php.ini file to the west, it affects displaying the date in the front-office (the date changes to the day before). The user would expect the date to stay the same no matter what if he uses the Date Field Type.

          *Steps to reproduce*
          # Create new eZ Platform installation.
          # Create a Content Type with a Date Field Definition.
          # Create a Content Object of this Content Type, giving it a date value, and publish it.
          # Navigate to this Content Object in the front-office. Confirm that it displays correct date.
          # Open your php.ini, and edit the entry, for instance:
          {code}
          date.timezone = "America/Puerto_Rico"
          {code}
          instead of whichever entry value you have there already.
          # Navigate to this Content Object in the front-office. It will now display the incorrect date (the date from the day before)
          When changing the timezone in php.ini file to the west, it affects displaying the date in the front-office (the date changes to the day before). The user would expect the date to stay the same no matter what if he uses the Date Field Type.
          The issue only happens when displaying the value in the front-office. Back-offices on tested versions (1.7.7, 1.13.2, 2.1.0) seem unaffected.

          *Steps to reproduce*
          # Create new eZ Platform installation.
          # Create a Content Type with a Date Field Definition.
          # Create a Content Object of this Content Type, giving it a date value, and publish it.
          # Navigate to this Content Object in the front-office. Confirm that it displays correct date.
          # Open your php.ini, and edit the entry, for instance:
          {code}
          date.timezone = "America/Puerto_Rico"
          {code}
          instead of whichever entry value you have there already.
          # Navigate to this Content Object in the front-office. It will now display the incorrect date (the date from the day before)
          Jacek Foremski (Inactive) made changes -
          Link This issue relates to EZP-29279 [ EZP-29279 ]
          André Rømcke made changes -
          Link This issue relates to EZP-29545 [ EZP-29545 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Jacek Foremski (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: