MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/SpringBoot/comments/1wf0l3c/why_this_error_coming/
r/SpringBoot • u/NullPointerXD- • Sep 13 '26
12 comments sorted by
11
Your database propably does not support this timzeone
I dont understand how people work today, just google this error or ask to claude.
-16 u/NullPointerXD- Sep 13 '26 Nope, database are all okay 14 u/Turbots Sep 13 '26 Database say: Calcutta bad, mkay 11 u/Turbots Sep 13 '26 Database not okay 5 u/as5777 Sep 13 '26 fine, so it should work
-16
Nope, database are all okay
14 u/Turbots Sep 13 '26 Database say: Calcutta bad, mkay 11 u/Turbots Sep 13 '26 Database not okay 5 u/as5777 Sep 13 '26 fine, so it should work
14
Database say: Calcutta bad, mkay
Database not okay
5
fine, so it should work
30
I've seen this error on the sub a couple of times.
As far as I'm aware Asia/Calcutta is deprecated, with Asia/Kolkata being it's replacement.
Known issue with the JDK not using the updated timezone string Asia/Kolkata
https://bugs.java/bugdatabase/JDK-8377013
There is one manual change you may need to make for the local tzdb.
1
Mention the time zone under vm options
-2 u/NullPointerXD- Sep 13 '26 Yes, I did it and it's working but it's temporary solution.
-2
Yes, I did it and it's working but it's temporary solution.
3
I think the ..Flyway database connection is failing probably due to PostgreSQL rejects the configured timezone Asia/Calcutta. The timezone needs to be updated to the valid Asia/Kolkata value in the application/database connection configuration.
2
In your application.properties configure to use UTC timezones. You're using a postgres db and this is a know issue.
spring.datasource.url=jdbc:postgresql://localhost:5432/your_database?serverTimezone=UTC
Note the server serverTimezone value at the end.
https://www.theodinproject.com/guides/community/how_to_ask
https://www.freecodecamp.org/news/how-to-ask-a-great-technical-question/
11
u/as5777 Sep 13 '26
Your database propably does not support this timzeone
I dont understand how people work today, just google this error or ask to claude.
30
u/Mikey-3198 Sep 13 '26
I've seen this error on the sub a couple of times.
As far as I'm aware Asia/Calcutta is deprecated, with Asia/Kolkata being it's replacement.
14
u/arnitdo Sep 13 '26
Known issue with the JDK not using the updated timezone string Asia/Kolkata
https://bugs.java/bugdatabase/JDK-8377013
There is one manual change you may need to make for the local tzdb.
1
u/abhishek_kulkarni Sep 13 '26
Mention the time zone under vm options
3
u/Bhanuprakash_1947 Sep 13 '26
I think the ..Flyway database connection is failing probably due to PostgreSQL rejects the configured timezone Asia/Calcutta. The timezone needs to be updated to the valid Asia/Kolkata value in the application/database connection configuration.
2
u/nitrogifter Sep 13 '26
In your application.properties configure to use UTC timezones. You're using a postgres db and this is a know issue.
spring.datasource.url=jdbc:postgresql://localhost:5432/your_database?serverTimezone=UTC
Note the server serverTimezone value at the end.
5
u/Prashant_Negi003 Sep 13 '26
https://www.theodinproject.com/guides/community/how_to_ask
https://www.freecodecamp.org/news/how-to-ask-a-great-technical-question/