Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Feb 9, 2024
1 parent b2a060d commit 53fd96f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PostHog/Utils/DateUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ private func newDateFormatter() -> DateFormatter {
dateFormatter.locale = Locale(identifier: "en_US_POSIX")
dateFormatter.timeZone = TimeZone(abbreviation: "UTC")

dateFormatter.dateFormat = "yyyy-MM-dd'T'hh:mm:ss.SSS'Z'" // Use 'hh' for 12-hour clock
dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
return dateFormatter
}

// returns 2024-02-09T10:53:53.781Z
public func toISO8601String(_ date: Date) -> String {
let dateFormatter = newDateFormatter()
return dateFormatter.string(from: date)
Expand Down

0 comments on commit 53fd96f

Please sign in to comment.