last modified time in ADLS storage

P, John 120 Reputation points
2024-04-08T17:08:44.3166667+00:00

Our data collector app is set to use UTC time. It writes to the ADLS Gen2 storage with a directory structure based on current UTC time (i.e. year/month/day). The azure region we selected is East 2. We access azure portal from west coast (i.e PST).

Our saved data in ADLS shows the Last modified time in PST, while the directory structure is created with UTC time. So we saw the new file coming in with Last modified time of 2024/11/8 , but saved to 2024/11/9 directory. The questions are:

  1. How does ADLS decide the timezone for the Last Modified time of a saved file? It is not the UTC time from data collection app, not the EST time where Azure East 2 region is located. It seems to use the timezone where the portal is running, is it correct?
  2. Can we set ADLS to use UTC time? If so, can we set it just for resource group, instead of the whole subscription?
Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,424 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amrinder Singh 4,270 Reputation points Microsoft Employee
    2024-04-09T14:31:36.51+00:00

    Hi Pan, John - Thanks for reaching out on Q&A Forum.Yes, at the backend operations are tracked via UTC TZ only. However, when viewing the content on the Azure portal, it can be due to the local time of the machine and reflecting accordingly. So to answer you question:

    #1 - For storage, it is tracked in UTC time zone.

    #2 - There is no option to set as it is already UTC.

    https://video2.skills-academy.com/en-us/rest/api/storageservices/formatting-datetime-values

    Please let me know if this helpful or if you any further queries, will be glad to assist.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful