Skip to content

Commit

Permalink
#568 customFormatter now returns nil on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
malcommac committed Oct 27, 2018
1 parent 04f740d commit b64d78e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/SwiftDate/Date/Date.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ extension Date: DateRepresentable {
}

#if os(Linux)
public var customFormatter: DateFormatter? = nil
public var customFormatter: DateFormatter? {
get {
debugPrint("Not supported on Linux")
return nil
}
set { debugPrint("Not supported on Linux") }
}
#else
/// Assign a custom formatter if you need a special behaviour during formatting of the object.
/// Usually you will not need to do it, SwiftDate uses the local thread date formatter in order to
Expand Down

0 comments on commit b64d78e

Please sign in to comment.