mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-06 00:32:32 -08:00
fix: TimeZone
This commit is contained in:
1 parent
55206b3dde
commit
6de14a3840
1 file changed
+2
-2
@@ -123,7 +123,7 @@ class DateInstant : Parcelable {
|
||||
}
|
||||
|
||||
fun setDate(year: Int, month: Int, day: Int) {
|
||||
mInstant = DateTime(mInstant)
|
||||
mInstant = DateTime(mInstant, DateTimeZone.getDefault())
|
||||
.withYear(year)
|
||||
.withMonthOfYear(month)
|
||||
.withDayOfMonth(day)
|
||||
@@ -131,7 +131,7 @@ class DateInstant : Parcelable {
|
||||
}
|
||||
|
||||
fun setTime(hour: Int, minute: Int) {
|
||||
mInstant = DateTime(mInstant)
|
||||
mInstant = DateTime(mInstant, DateTimeZone.getDefault())
|
||||
.withHourOfDay(hour)
|
||||
.withMinuteOfHour(minute)
|
||||
.toInstant()
|
||||
|
||||
Reference in new issue
Block a user