Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2019 04:06 AM
Hi,
It's bcoz your system timezone is ist. So while storing it is converting to ist.
If you don't want that conversion then in our earlier code, Just change this line and uncomment the other lines.
Packages.java.util.TimeZone.getTimeZone("IST"); //sets to IST
TO
Packages.java.util.TimeZone.getTimeZone("GMT"); //sets to GMT
and check.