Skip to content

Commit

Permalink
Merge pull request #11 from swift-calendar/date-hotfix
Browse files Browse the repository at this point in the history
ICalendarDate Hotfix
  • Loading branch information
JCTec authored Nov 24, 2020
2 parents a0b8a4b + 3ec1fcb commit 1f67599
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/ICalendarKit/structures/ICalendarDate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public struct ICalendarDate: VPropertyEncodable {
public var vEncoded: String {
let formatter = DateFormatter()
formatter.timeZone = TimeZone(secondsFromGMT: 0)
formatter.locale = Locale.init(identifier: "UTC")
formatter.dateFormat = "yyyyMMdd\(ignoreTime ? "" : "'T'HHmmss'Z'")"
return formatter.string(from: date)
}
Expand Down

0 comments on commit 1f67599

Please sign in to comment.