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>
18 lines
346 B
Swift
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
|
|
}()
|
|
}
|