mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Rename variable
This commit is contained in:
@@ -77,11 +77,11 @@ abstract class DateUtils {
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getLocalTime(testTimeInMillis: Long? = null): Long {
|
||||
fun getLocalTime(utcTimeInMillis: Long? = null): Long {
|
||||
if (fixedLocalTime != null) return fixedLocalTime as Long
|
||||
|
||||
val tz = getTimeZone()
|
||||
val now = testTimeInMillis ?: Date().time
|
||||
val now = utcTimeInMillis ?: Date().time
|
||||
return now + tz.getOffset(now)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user