You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Curious to see if others are seeing this and able to reproduce this.
We've noticed that in some instances computers are seeing "Days Remaining To Update" set to 0. Our requiredInstallationDate is set to the following which is still in the future:
Go to System Settings > General > Language & Region > Region and set it to "United Kingdom".
Go to System Settings > General > Date & Time > 24-hour time: turn it on (this is the default in the UK)
Launch Nudge. Days Remaining To Update should show up correctly (e.g. 9 days at the time of this comment)
Go to System Settings > General > Date & Time > 24-hour time: turn it off
Re-launch Nudge. Days Remaining To Update shows up incorrectly with 0 days
Go to System Settings > General > Language & Region > Region and set it to "United States".
Re-launch Nudge. Days Remaining To Update shows up incorrectly with 0 days
Go to System Settings > General > Date & Time > 24-hour time: turn it on
Re-launch Nudge. Days Remaining To Update shows up incorrectly with 0 days
Note: I'm not sure why but if your Region is already set to "United States and you simply toggle 24-hour time on and off, you don't see an issue at all. The issue seems to only manifest when you set the region to "United Kingdom". It's possible it may also manifest if you start with other regions as well.
Further investigating reveals the following when you run the command: defaults read /Library/Managed\ Preferences/com.github.macadmins.Nudge
When 24-hour time is disabled: requiredInstallationDate = "2023-04-21 6:00:00 pm +0000";
When 24-hour time is enabled: requiredInstallationDate = "2023-04-21 18:00:00 +0000";
If I change the requiredInstallationDate value from a string to a date type, the issue isn't seen:
Running the following command: defaults read /Library/Managed\ Preferences/com.github.macadmins.Nudge
When 24-hour time is disabled: requiredInstallationDate = "2023-04-21 6:00:00 PM +0000";
When 24-hour time is enabled: requiredInstallationDate = "2023-04-21 18:00:00 +0000";
I am aware that there have been updates to documentation that suggest support for string values in #463 but this is a really bizarre issue. Curious to see if other people have seen similar behavior.
Sample Profile:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>userInterface</key>
<dict>
<key>fallbackLanguage</key>
<string>en</string>
<key>forceFallbackLanguage</key>
<true/>
<key>iconDarkPath</key>
<string>/path/to/image.png</string>
<key>iconLightPath</key>
<string>/path/to/image.png</string>
<key>showDeferralCount</key>
<true/>
<key>simpleMode</key>
<false/>
<key>singleQuitButton</key>
<false/>
<key>updateElements</key>
<array>
<dict>
<key>_language</key>
<string>en</string>
<key>actionButtonText</key>
<string>Update Mac</string>
<key>customDeferralButtonText</key>
<string>Custom</string>
<key>customDeferralDropdownText</key>
<string>Defer</string>
<key>informationButtonText</key>
<string>More Information</string>
<key>mainContentHeader</key>
<string>You will need to update your Mac</string>
<key>mainContentNote</key>
<string>Friendly reminder from #help</string>
<key>mainContentSubHeader</key>
<string>Updates can take around 30-45 minutes to complete</string>
<key>mainContentText</key>
<string>There is a software update available for your Mac which needs to be installed. Please click "Update Mac" to initiate the update.\n\nYou may also install this macOS software update at any time by navigating to:\n\nApple menu > System Settings > General > Software Update</string>
<key>mainHeader</key>
<string>macOS Update Required</string>
<key>oneDayDeferralButtonText</key>
<string>One Day</string>
<key>oneHourDeferralButtonText</key>
<string>One Hour</string>
<key>primaryQuitButtonText</key>
<string>Update Later</string>
<key>secondaryQuitButtonText</key>
<string>I understand</string>
<key>subHeader</key>
<string></string>
</dict>
</array>
</dict>
<key>optionalFeatures</key>
<dict>
<key>disableSoftwareUpdateWorkflow</key>
<true/>
<key>attemptToFetchMajorUpgrade</key>
<false/>
<key>aggressiveUserExperience</key>
<false/>
<key>aggressiveUserFullScreenExperience</key>
<false/>
</dict>
<key>osVersionRequirements</key>
<array>
<dict>
<key>aboutUpdateURL</key>
<string>https://support.apple.com/HT201541</string>
<key>requiredInstallationDate</key>
<string>2023-04-21T18:00:00</string>
<key>requiredMinimumOSVersion</key>
<string>13.3.1</string>
<key>targetedOSVersionsRule</key>
<string>default</string>
</dict>
</array>
<key>userExperience</key>
<dict>
<key>randomDelay</key>
<false/>
<key>elapsedRefreshCycle</key>
<string>7200</string>
<key>imminentRefreshCycle</key>
<string>7200</string>
</dict>
</dict>
</plist>
The text was updated successfully, but these errors were encountered:
This ultimately boils down to me having to write conversion code that must be incomplete for strings vs the true object type I first designed Nudge around.
I have the same issue on a users machine. He has the region set to Sweden (that uses 24h as standard) and has the clock set to 12h mode.
We use the Custom json schema in Jamf to make the setup of the configuration profile easy. Is there a way to change that schema to use date instead of string? Tried to manualy change to date in the schema but then it can't read the schema..
I had at least 2 users with time zone set to UK but time format not 24h.
I just moved from a custom schema CP to a plain XML one, to change the tags from to .
Curious to see if others are seeing this and able to reproduce this.
We've noticed that in some instances computers are seeing "Days Remaining To Update" set to 0. Our
requiredInstallationDate
is set to the following which is still in the future:To reproduce:
Note: I'm not sure why but if your Region is already set to "United States and you simply toggle 24-hour time on and off, you don't see an issue at all. The issue seems to only manifest when you set the region to "United Kingdom". It's possible it may also manifest if you start with other regions as well.
Further investigating reveals the following when you run the command:
defaults read /Library/Managed\ Preferences/com.github.macadmins.Nudge
requiredInstallationDate = "2023-04-21 6:00:00 pm +0000";
requiredInstallationDate = "2023-04-21 18:00:00 +0000";
If I change the
requiredInstallationDate
value from astring
to adate
type, the issue isn't seen:Running the following command:
defaults read /Library/Managed\ Preferences/com.github.macadmins.Nudge
requiredInstallationDate = "2023-04-21 6:00:00 PM +0000";
requiredInstallationDate = "2023-04-21 18:00:00 +0000";
I am aware that there have been updates to documentation that suggest support for
string
values in #463 but this is a really bizarre issue. Curious to see if other people have seen similar behavior.Sample Profile:
The text was updated successfully, but these errors were encountered: