Skip to content

Commit

Permalink
(Date Picker) The date had 2 hour offset with local hour
Browse files Browse the repository at this point in the history
The date sent by the kiosk had 2 hours because of a UTC conversion.

(cherry picked from commit 6817e0c)
  • Loading branch information
botheis authored and neoclust committed Apr 22, 2024
1 parent c2ec0e8 commit e46af1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kiosk_interface/views/date_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ def get_selected_hour(self, type="hour"):
self.date_today,
QTime(int(self.hour_current[0]), int(self.hour_current[1])),
Qt.TimeSpec.LocalTime,
).toUTC()
)
self.datetime_selected = QDateTime(
self.date_selected,
QTime(int(self.hour_selected[0]), int(self.hour_selected[1])),
Qt.TimeSpec.LocalTime,
).toUTC()
)
self.tuple_current = (
self.datetime_current.date().year(),
self.datetime_current.date().month(),
Expand Down

0 comments on commit e46af1b

Please sign in to comment.