Skip to content

Commit

Permalink
fix: dateEncodingFormatter to yyyy-MM-dd'T'HH:mm:ssZ
Browse files Browse the repository at this point in the history
  • Loading branch information
devahmedshendy authored and leogdion committed Sep 29, 2023
1 parent faaae99 commit 4b9a3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftTube/SwiftTube.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public enum YouTube {
public static var safeArrayDecoding = false

/// Used to encode Dates when uses as string params
public static var dateEncodingFormatter = DateFormatter(formatString: "yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZZZZ",
public static var dateEncodingFormatter = DateFormatter(formatString: "yyyy-MM-dd'T'HH:mm:ssZ",
locale: Locale(identifier: "en_US_POSIX"),
calendar: Calendar(identifier: .gregorian))

Expand Down

0 comments on commit 4b9a3ea

Please sign in to comment.