Ferrite-backup/Ferrite/Extensions/DateFormatter.swift
kingbri d2d7d7364f Logging: Add exportability to logs
Logs can be exported into their own files. I'm still debating on
writing a continuous stream to a logfile that persists on app
crashes.

Also make the show error toasts toggle only apply to generic errors
and not customized error toasts.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-03-10 15:01:00 -05:00

18 lines
346 B
Swift

//
// DateFormatter.swift
// Ferrite
//
// Created by Brian Dashore on 9/4/22.
//
import Foundation
// A static DateFormatter is better than initializing new ones
extension DateFormatter {
static let historyDateFormatter: DateFormatter = {
let df = DateFormatter()
df.dateFormat = "ddMMyyyy"
return df
}()
}