An Azure managed PostgreSQL database service for app development and deployment.
For Azure Database for PostgreSQL Flexible Server and Azure Database for MySQL Flexible Server, you can change the server timezone from UTC to CEST using the server parameters.
PostgreSQL Flexible Server:
Go to Azure Portal
Open your PostgreSQL Flexible Server
Navigate to Server Parameters
Search for:
timezone
Set the value to:
Europe/Berlin
or another appropriate European timezone that supports DST automatically
Do not use a fixed offset like CEST or UTC+2, because fixed offsets do not automatically adjust for Daylight Saving Time.
Recommended values:
Europe/Berlin
Europe/Paris
Europe/Amsterdam
After saving, restart may be required depending on the parameter behavior.
You can also verify from SQL:
SHOW timezone;
MySQL Flexible Server:
Open Azure Portal
Go to your MySQL Flexible Server
Navigate to Server Parameters
Search for:
time_zone
Set it to:
Europe/Berlin
Then restart the server if required.
Verification:
```sql
SELECT @@global.time_zone, @@session.time_zone;
DST Handling: Yes. If you use a named timezone such as Europe/Berlin, Azure/MySQL/PostgreSQL automatically handles Daylight Saving Time transitions between CET and CEST.
Important:
- Avoid using:
CEST
CET
+02:00
- UTC+1 because these are fixed offsets/abbreviations and may not automatically adjust during DST transitions.For Azure Database for PostgreSQL Flexible Server and Azure Database for MySQL Flexible Server, you can change the server timezone from UTC to CEST using the server parameters. PostgreSQL Flexible Server:
- Go to Azure Portal
- Open your PostgreSQL Flexible Server
- Navigate to Server Parameters
- Search for:
- timezone
- Set the value to:
- Europe/Berlin
- or another appropriate European timezone that supports DST automatically
CESTorUTC+2, because fixed offsets do not automatically adjust for Daylight Saving Time. Recommended values:- Europe/Berlin
- Europe/Paris
- Europe/Amsterdam
MySQL Flexible Server:SHOW timezone;- Open Azure Portal
- Go to your MySQL Flexible Server
- Navigate to Server Parameters
- Search for:
- time_zone
- Set it to:
- Europe/Berlin
Then restart the server if required.
Verification:
SELECT @@global.time_zone, @@session.time_zone;
```
DST Handling:
Yes. If you use a named timezone such as `Europe/Berlin`, Azure/MySQL/PostgreSQL automatically handles Daylight Saving Time transitions between CET and CEST.
Important:
- Avoid using:
- CEST
- CET
- +02:00
- UTC+1
because these are fixed offsets/abbreviations and may not automatically adjust during DST transitions.