local date being saved as utcin est zone - MariaDB

I have an expiration date, that's declared as LocalDate in java. While saving in MariaDB its being saved as UTC, ie 5.5 hrs being deducted from the original time.

So when Im saving expiration date as '10-05-2018' , it is being saved in database as '10-04-2018'. While retrieving Im getting the correct date, ie '10-05-2018'.

How do I make sure its being saved as the same date in database as well?...

Read More »

By: StackOverFlow - 5 days ago

Related Posts