Updated the static properties implemented the in the DateFormatter+Formatter extension to use the TimeZone extension from the Core library.
This commit is contained in:
parent
2ce9a1e7f5
commit
2ba3284fea
@ -1,3 +1,4 @@
|
||||
import Core
|
||||
import Foundation
|
||||
|
||||
extension DateFormatter {
|
||||
@ -7,7 +8,7 @@ extension DateFormatter {
|
||||
static let dateOnly = {
|
||||
let formatter = DateFormatter()
|
||||
|
||||
formatter.timeZone = .init(secondsFromGMT: 0)
|
||||
formatter.timeZone = .gmt
|
||||
formatter.dateFormat = .Format.yearMonthDay
|
||||
|
||||
return formatter
|
||||
@ -16,7 +17,7 @@ extension DateFormatter {
|
||||
static let dateAndTime = {
|
||||
let formatter = DateFormatter()
|
||||
|
||||
formatter.timeZone = .init(secondsFromGMT: 0)
|
||||
formatter.timeZone = .gmt
|
||||
formatter.dateFormat = .Format.dateAndTimeWithMicroseconds
|
||||
|
||||
return formatter
|
||||
|
Loading…
x
Reference in New Issue
Block a user