Rename variable

pull/1111/head
sgallese 4 years ago
parent c12a6c6a4d
commit aae85c1170

@ -77,11 +77,11 @@ abstract class DateUtils {
} }
@JvmStatic @JvmStatic
fun getLocalTime(testTimeInMillis: Long? = null): Long { fun getLocalTime(utcTimeInMillis: Long? = null): Long {
if (fixedLocalTime != null) return fixedLocalTime as Long if (fixedLocalTime != null) return fixedLocalTime as Long
val tz = getTimeZone() val tz = getTimeZone()
val now = testTimeInMillis ?: Date().time val now = utcTimeInMillis ?: Date().time
return now + tz.getOffset(now) return now + tz.getOffset(now)
} }

Loading…
Cancel
Save