Commit 14958259 authored by Abhishek Bhardwaj's avatar Abhishek Bhardwaj Committed by Commit Bot

DeviceScheduledUpdateChecker: Update day_of_month restrictions

This change updates the property JSON to allow day of month the full
range of values from 1 to 31. This reflects the existing implementation
that handles monthly rollovers.

BUG=924762
TEST=Unit tests.

Change-Id: I9672ccc77a33118e9c668c9ff05459354889dbc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1732433Reviewed-by: default avatarLutz Justen <ljusten@chromium.org>
Commit-Queue: Abhishek Bhardwaj <abhishekbh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683712}
parent 7c6275bd
......@@ -16583,10 +16583,10 @@
'$ref': 'WeekDay'
},
'day_of_month': {
'description': '''Day of month [1-28] when the update check should happen, interpreted in the device's local time zone. Only used when 'frequency' is 'MONTHLY'. If this is more than the maximum number of days in a given month then the last day of the month will be chosen. Currently it is restricted to 28 to resolve month rollover ambiguities.''',
'description': '''Day of month [1-31] when the update check should happen, interpreted in the device's local time zone. Only used when 'frequency' is 'MONTHLY'. If this is more than the maximum number of days in a given month then the last day of the month will be chosen.''',
'type': 'integer',
'minimum': 1,
'maximum': 28
'maximum': 31
}
},
'required': ['update_check_time', 'frequency']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment