Hinni / seq-input-mssql

Import data from MSSQL database to Seq. For example for error logs stored in tables.
Other
3 stars 3 forks source link

Daylight Saving Time handling #17

Closed MattMofDoom closed 2 years ago

MattMofDoom commented 2 years ago

Hi @Hinni,

This should close and resolve #16.

I simply do a comparison of the dateTime read in from the timestamp file with the current time. If that timestamp is later than the current time, then I reset the date time to 1 second before the current run time.

That should do the trick!

Cheers,

Matt

Hinni commented 2 years ago

Hi @MattMofDoom

Thanks for the enhancement. I will check this tomorrow.

Greets Michael

MattMofDoom commented 2 years ago

@Hinni no worries. I think it's right for the scenario, but of course cleanly handling DST cutover is tricky.