Skip to content

Commit

Permalink
Merge pull request #28 from ljesus/master
Browse files Browse the repository at this point in the history
Fixed 24H/12H time format due to unforced locale
  • Loading branch information
suzuki-0000 committed Sep 18, 2018
2 parents 2595182 + ea6ba1d commit 5466d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CountdownLabel/CountdownLabel.swift
Expand Up @@ -32,7 +32,7 @@ public class CountdownLabel: LTMorphingLabel {
// conputed property
public var dateFormatter: DateFormatter {
let df = DateFormatter()
df.locale = NSLocale.current
df.locale = Locale(identifier: "en_US_POSIX")
df.timeZone = NSTimeZone(name: "GMT") as TimeZone!
df.dateFormat = timeFormat
return df
Expand Down

0 comments on commit 5466d9e

Please sign in to comment.