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
{{ message }}
Repository navigation
Extreme precision on ARI start/end timestamps #7779
In the ARI responses from Boulder, the start and end suggestedWindow fields often include a fractional seconds component with 9 digits. While I don't think this breaks any hard format rules in RFC3339, it complicates the native JSON parsing in .NET/PowerShell which attempts to auto-convert timestamps to .NET DateTime objects.
Specifically, the timestamps are only auto-converted if the fractional seconds field is 7 or fewer digits which conforms to .NET's round-trip ("O", "o") format specifier. So if there are 7 or fewer digits, the fields are automatically converted to DateTime objects. But more than 7, they remain as unparsed string values.
I was hoping Boulder could be updated to either round the fractional seconds to 7 digits or strip fractional seconds entirely from the response so I can reduce special-case parsing code in my client. Stripping fractional seconds seems to be standard in other Boulder responses such as the expires field on Order objects and I wouldn't think the ARI values need that level of precision. Also, think of the bandwidth savings! 😉
Oh fascinating, that's certainly not a client failure mode I would have predicted! But yeah there's no reason for us to be providing this much precision in the timestamps, we can truncate them to one second for sure.
Activity
aarongable commentedon Nov 1, 2024
Oh fascinating, that's certainly not a client failure mode I would have predicted! But yeah there's no reason for us to be providing this much precision in the timestamps, we can truncate them to one second for sure.
Truncate ARI timestamps to 1-second resolution (#7784)