Account for GMT offset

This commit is contained in:
Ali
2022-09-06 19:37:07 +04:00
parent 5c6922ea8f
commit e61ae3c0b3

View File

@@ -488,7 +488,7 @@ private final class TimeSelectionControlComponent: Component {
return
}
let timestamp = Int32(strongSelf.pickerView.date.timeIntervalSince1970)
let timestamp = Int32(strongSelf.pickerView.date.timeIntervalSince1970 - Double(TimeZone.current.secondsFromGMT()))
component.apply(timestamp)
}
)),