Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #5750: Use the correct cal and time zone for the DAU date formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed Jul 27, 2022
1 parent f3ff08b commit e1e2beb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/BraveShared/Analytics/DAU.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public class DAU {
static let dateFormatter = { () -> DateFormatter in
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd"
formatter.calendar = Calendar(identifier: .gregorian)
formatter.calendar = DAU.calendar
formatter.timeZone = TimeZone(abbreviation: "GMT")!
return formatter
}()

Expand Down

0 comments on commit e1e2beb

Please sign in to comment.