Skip to content

Commit 2cdbbb7

Browse files
authored
Fix HeartbeatsPayload using incorrect year format (#11611)
1 parent 959cf0d commit 2cdbbb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseCore/Internal/Sources/HeartbeatLogging/HeartbeatsPayload.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ extension HeartbeatsPayload {
122122
/// Convenience instance that represents an empty payload.
123123
static let emptyPayload = HeartbeatsPayload()
124124

125-
/// A default date formatter that uses `YYYY-MM-dd` format.
125+
/// A default date formatter that uses `yyyy-MM-dd` format.
126126
public static let dateFormatter: DateFormatter = {
127127
let formatter = DateFormatter()
128-
formatter.dateFormat = "YYYY-MM-dd"
128+
formatter.dateFormat = "yyyy-MM-dd"
129129
formatter.locale = Locale(identifier: "en_US_POSIX")
130130
formatter.timeZone = TimeZone(secondsFromGMT: 0)
131131
return formatter

0 commit comments

Comments
 (0)