Skip to content

Commit

Permalink
Merge pull request #55 from vincentneo/fix/locale
Browse files Browse the repository at this point in the history
Fix for date creation issue in specific regions
  • Loading branch information
vincentneo committed Oct 14, 2019
2 parents b284150 + 9dd6dee commit 2dfed2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Converters.swift
Expand Up @@ -52,6 +52,7 @@ internal final class Convert {

// Timezone should be 0 as GPX uses UTC time, not local time.
formatter.timeZone = TimeZone(secondsFromGMT: 0)
formatter.locale = Locale(identifier: "en_US_POSIX")

// dateTime(YYYY-MM-DDThh:mm:ssZ)
formatter.dateFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'"
Expand Down

0 comments on commit 2dfed2d

Please sign in to comment.