Issue with persisting dates

I was wanting to look at previous sunrise dates so I was looking in my postgres database where all the values get written using the jdbc postgres persistence library. I noticed that all the values for sunrise are displaying as midnight of each day…in other words it doesn’t look like the value is being stored properly. The item I have is a DateTypeType and in the database it was created as a timestamp with no timezone. Any idea if this is a bug or something I need to correct?


The event jobs from the astro binding are always calculated at midnight, so if it is that what your are seeing it should be okay:

2017-12-26 00:00:30.684 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:xmas

Right, but the actual value of sunset changes every day…and its not at midnight :slight_smile:…at least not here

1 Like

There’s an open defect for this.

The test jar linked there should fix it.