mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: TimeZone
This commit is contained in:
@@ -123,7 +123,7 @@ class DateInstant : Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun setDate(year: Int, month: Int, day: Int) {
|
fun setDate(year: Int, month: Int, day: Int) {
|
||||||
mInstant = DateTime(mInstant)
|
mInstant = DateTime(mInstant, DateTimeZone.getDefault())
|
||||||
.withYear(year)
|
.withYear(year)
|
||||||
.withMonthOfYear(month)
|
.withMonthOfYear(month)
|
||||||
.withDayOfMonth(day)
|
.withDayOfMonth(day)
|
||||||
@@ -131,7 +131,7 @@ class DateInstant : Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun setTime(hour: Int, minute: Int) {
|
fun setTime(hour: Int, minute: Int) {
|
||||||
mInstant = DateTime(mInstant)
|
mInstant = DateTime(mInstant, DateTimeZone.getDefault())
|
||||||
.withHourOfDay(hour)
|
.withHourOfDay(hour)
|
||||||
.withMinuteOfHour(minute)
|
.withMinuteOfHour(minute)
|
||||||
.toInstant()
|
.toInstant()
|
||||||
|
|||||||
Reference in New Issue
Block a user