diff --git a/Modules/RSCore/Sources/RSCore/DateFormatter+RSCore.swift b/Modules/RSCore/Sources/RSCore/DateFormatter+RSCore.swift new file mode 100644 index 000000000..3c2afb1a5 --- /dev/null +++ b/Modules/RSCore/Sources/RSCore/DateFormatter+RSCore.swift @@ -0,0 +1,19 @@ +// +// DateFormatter+RSCore.swift +// RSCore +// +// Created by Brent Simmons on 6/6/26. +// + +import Foundation + +public extension DateFormatter { + + /// Fixed-format log timestamp: `yyyy-MM-dd HH:mm:ss`, POSIX locale. + static let logTimestamp: DateFormatter = { + let formatter = DateFormatter() + formatter.dateFormat = "yyyy-MM-dd HH:mm:ss" + formatter.locale = Locale(identifier: "en_US_POSIX") + return formatter + }() +}