Skip to content

Commit

Permalink
Fix daylight savings bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesquires committed Mar 28, 2023
1 parent 5acad59 commit 8fb2dee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ The changelog for `Nine41`. Also see the [releases](https://github.com/jessesqui
NEXT
-----

- Xcode 14 and Swift 5.7 ([@jessesquires](https://github.com/jessesquires))
- TBA

2.3.1
-----

- Fix Daylight Savings bug ([@jessesquires](https://github.com/jessesquires))
- Xcode 14 and Swift 5.7 ([@jessesquires](https://github.com/jessesquires))

2.3.0
-----

Expand Down
2 changes: 1 addition & 1 deletion Sources/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extension Date {
static func statusBarDateTime() -> Date {
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"
dateFormatter.timeZone = TimeZone.current
dateFormatter.timeZone = TimeZone(secondsFromGMT: TimeZone.current.secondsFromGMT())
dateFormatter.locale = Locale.current
return dateFormatter.date(from: "2007-01-09T09:41:00")!
}
Expand Down

0 comments on commit 8fb2dee

Please sign in to comment.