File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ Requires macOS 12.0 and higher.
23
23
- Intel Virtual Machines now have a forced ` board-id ` property that complies with Apple's own logic/SOFA.
24
24
- Thanks to [ Mykola Grymalyuk] ( https://github.com/khronokernel ) for the [ PR] ( https://github.com/macadmins/nudge/pull/622 )
25
25
- Addresses [ 621] ( https://github.com/macadmins/nudge/issues/621 )
26
+ - ` requiredInstallationDisplayFormat ` was no longer being honored on Nudge versions 2.0.1 through 2.0.5 due to a regression
27
+ - Addresses [ 627] ( https://github.com/macadmins/nudge/issues/627 )
26
28
27
29
## [ 2.0.5] - 2024-07-24
28
30
Requires macOS 12.0 and higher.
Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ struct DateManager {
561
561
562
562
func coerceDateToString( date: Date , formatterString: String , locale: Locale ? = nil ) -> String {
563
563
if formatterString == " MM/dd/yyyy " {
564
- // Use the specified locale or the current locale if none is provided
564
+ // If using default, try to use the locale's values
565
565
let dateFormatter = DateFormatter ( )
566
566
dateFormatter. dateStyle = . short
567
567
dateFormatter. timeStyle = . none
@@ -570,7 +570,7 @@ struct DateManager {
570
570
} else {
571
571
let formatter = DateFormatter ( )
572
572
formatter. dateFormat = formatterString
573
- formatter. locale = locale ?? Locale . current
573
+ print ( formatter. string ( from : date ) )
574
574
return formatter. string ( from: date)
575
575
}
576
576
}
You can’t perform that action at this time.
0 commit comments