Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
7f55e0f0
Commit
7f55e0f0
authored
May 10, 2019
by
Viktor De Pasquale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed picking up wrong locale for dates
parent
4f9e8d2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
XTime.kt
app/src/main/java/com/topjohnwu/magisk/utils/XTime.kt
+1
-2
No files found.
app/src/main/java/com/topjohnwu/magisk/utils/XTime.kt
View file @
7f55e0f0
...
@@ -3,7 +3,6 @@ package com.topjohnwu.magisk.utils
...
@@ -3,7 +3,6 @@ package com.topjohnwu.magisk.utils
import
java.text.DateFormat
import
java.text.DateFormat
import
java.text.ParseException
import
java.text.ParseException
import
java.text.SimpleDateFormat
import
java.text.SimpleDateFormat
import
java.util.*
val
now
get
()
=
System
.
currentTimeMillis
()
val
now
get
()
=
System
.
currentTimeMillis
()
...
@@ -14,7 +13,7 @@ fun String.toTime(format: DateFormat) = try {
...
@@ -14,7 +13,7 @@ fun String.toTime(format: DateFormat) = try {
-
1L
-
1L
}
}
private
val
locale
get
()
=
Locale
.
getDefault
()
private
val
locale
get
()
=
Locale
Manager
.
locale
val
timeFormatFull
by
lazy
{
SimpleDateFormat
(
"yyyy/MM/dd_HH:mm:ss"
,
locale
)
}
val
timeFormatFull
by
lazy
{
SimpleDateFormat
(
"yyyy/MM/dd_HH:mm:ss"
,
locale
)
}
val
timeFormatStandard
by
lazy
{
SimpleDateFormat
(
"yyyy-MM-dd'T'HH:mm:ss'Z'"
,
locale
)
}
val
timeFormatStandard
by
lazy
{
SimpleDateFormat
(
"yyyy-MM-dd'T'HH:mm:ss'Z'"
,
locale
)
}
val
timeFormatMedium
by
lazy
{
DateFormat
.
getDateInstance
(
DateFormat
.
MEDIUM
,
LocaleManager
.
locale
)
}
val
timeFormatMedium
by
lazy
{
DateFormat
.
getDateInstance
(
DateFormat
.
MEDIUM
,
LocaleManager
.
locale
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment