How to change timezone on web app Linux

Milos Vukovich 0 Reputation points
2024-02-15T00:10:15.3766667+00:00

I am trying to change the timezone in the Azure web service Linux I added application configuration TZ: US/Los_Angeles, and when I type in bash date I get UTC time and in the end, it says Pacific Is there any other way to change it, I even created a new web app but no luck

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
769 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Thiago Cardoso 0 Reputation points Microsoft Employee
    2024-02-15T03:23:21.3566667+00:00

    in Configurations under application settings
    you can use WEBSITE_TIME_ZONE and value Pacific Standard Time or America/Los_Angeles or US/pacific, based your US/los angeles. you can check via webssh,

    you can check in the page for more details.
    https://learn.microsoft.com/en-us/azure/app-service/reference-app-settings?tabs=kudu%2Cdotnet#app-environment

    and the values https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc749073(v=ws.10)


  2. brtrach-MSFT 15,256 Reputation points Microsoft Employee
    2024-02-16T00:42:33.57+00:00

    @Milos Vukovich To understand, the time displayed still says UTC? Be careful as sometimes it will say UTC-8, which simply means the time is 8 hours behind UTC. Next item would be to restart the web app. Some app settings require a restart of the web app to take effect.

    If restarting the web app does not have an impact, can you please share your bash cmdlet and the output? The more details provided, the better we can assist you.

    0 comments No comments