umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.49k stars 2.69k forks source link

Irregular time zone adjustments for media items in media type folder #16177

Open kristofferwebmind opened 6 months ago

kristofferwebmind commented 6 months ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

13.3.0

Bug summary

In backoffice, for a media item in the media folder, the property Last Edited is showing diffierent timestamps depending on where you are viewing it. When viewing it in the info tab, the timestamp is displayed in a UTC +2 format which makes sense as I am located in Sweden. However, when viewing the Last Edited property in the the list view of a media type folder, the timestamp is shown in plain UTC. This creates a two hours diff for the same stored value depending on where you are viewing it.

Specifics

image

The issue has been checked in another instance of a 13.3.0 site aswell. There, the difference between the timestamps was not two hours but one hour which seems to be due to tha fact that the media items there were uploaded during winter time.

Steps to reproduce

  1. Log in to backoffice
  2. Create a folder in the Media library
  3. Upload a media item in the folder
  4. Click the info tab for the item
  5. Inspect the property Last Edited Result: The timestamp for the property is displayed in the local timezone format
  6. Click to view contents of folder in list view
  7. Inspect the the property Last Edited Result: The timestamp for the property is displayed in UTC Expected result: The timestamp for the property is displayed in the local timezone format

Expected result / actual result

I would expect the property value to be the same regardless of which view it is looked at in. Preferrably, the media folder list view property would be formatted and displayed using the local timezone format, as seems to be the case for the info tab property.

github-actions[bot] commented 6 months ago

Hi there @kristofferwebmind!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

NguyenThuyLan commented 3 months ago

Thanks @kristofferwebmind for reporting this issue . I can confirm that I can reproduce it. I'm located in Vietnam and create a cloud project and choose Region = West Europe