Time Picker Hours and Day Input are Incorrectly Offset When Using Luxon

Time Picker Hours and Day Input are Incorrectly Offset When Using Luxon

dev@zincpartners.usdev@zincpartners.us Posts: 2Questions: 0Answers: 0

I am trying to implement Luxon datetime handling in my datatable and the hours I select do not match what gets selected in the input. It looks like the same thing is happening in this Luxon example:
https://datatables.net/extensions/datetime/examples/initialisation/luxon.html

Is this a bug, or is there a way to handle for the offset on hours selection?

Replies

  • dev@zincpartners.usdev@zincpartners.us Posts: 2Questions: 0Answers: 0

    I managed to fix this in my datatable by changing the hours getter and setter from get/setUTCHours to get/setHours in the time picker widget click handler in datatables.dateTime.min.js

  • allanallan Posts: 63,529Questions: 1Answers: 10,473 Site admin

    Its a bug - thanks for letting me know about this!

    I've corrected it in this commit. The nightly build will have the change shortly.

    Allan

Sign In or Register to comment.