Closed Krapfeen closed 4 months ago
Confirming, i've noticed something similar few days ago https://github.com/pimcore/object-merger/pull/42#issuecomment-1785074317
Thanks a lot for reporting the issue. We did not consider the issue as "Priority" or "Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.
The problem consists of multiple parts. The main problem is that there are different use cases for date values:
Currently Pimcore only supports the 1. option for date/datetime fields within data objects or asset metadata. Additionally this implementation has some bugs:
In addition to that Pimcore should offer a option to switch between the 2 modes on datetime attribute level depending on the use case.
=> Fixed in https://github.com/pimcore/pimcore/pull/17151 and https://github.com/pimcore/admin-ui-classic-bundle/pull/560. With enabled timezone support would be the "point in time" mode whereas without timezone support is the "time indication" mode.
For the datahub case mentioned in the issue description the easiest solution for now could be to set the Pimcore server timezone if you are not in an environment where different timezones matter:
pimcore:
general:
timezone: Europe/Berlin
In the future this needs to respect also the 2 different modes/use cases.
Fixed by https://github.com/pimcore/pimcore/pull/17117 and all the related PRs
Pimcore version
10.6.9
Steps to reproduce
Playback Environment: \ Windows 10 Chrome Browser Version 118.0.5993.71 (Official Build), (64 bit) Timezone: GMT+5
Precondition: \ Pimcore 10.6.9 Timezone Server GMT+3 \config\config.yaml:
pimcore: general: timezone: Europe/Moscow "pimcore/data-hub": "^1.6" v. 1.6.3
Holydays class with the Date field type
Playback Steps: \
Comment: When saving the value in the Date field, the client's time zone is taken into account, not the server's, respectively, the UTC label is saved for 5 hours less. At the same time, if the server with Pimcore is located in a time zone that differs from the Pimcore user's time zone, then the API will be given a value that corresponds to the server's time zone, relative to the stored timestamp
Actual Behavior
Expected Behavior