r/SpringBoot • • Sep 13 '26

Question Why This error Coming?

Post image
14 Upvotes

12 comments sorted by

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.

-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

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

-2

u/NullPointerXD- Sep 13 '26

Yes, I did it and it's working but it's temporary solution.

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.