mirror of
https://github.com/yJason/ClashX-Dashboard.git
synced 2026-03-01 00:35:19 +08:00
fix: spm
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// DateFormatter+.swift
|
||||
// ClashX
|
||||
//
|
||||
// Created by yicheng on 2019/12/14.
|
||||
// Copyright © 2019 west2online. All rights reserved.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
extension DateFormatter {
|
||||
static var js: DateFormatter {
|
||||
let dateFormatter = DateFormatter()
|
||||
dateFormatter.locale = Locale(identifier: NSCalendar.Identifier.ISO8601.rawValue)
|
||||
dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SZ"
|
||||
return dateFormatter
|
||||
}
|
||||
|
||||
static var provider: DateFormatter {
|
||||
let f = DateFormatter()
|
||||
f.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSSZZ"
|
||||
return f
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user