feat: deploy cloud-only RMM and verify audited APT diagnostics
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -73,7 +73,12 @@ def now():
|
||||
|
||||
def timestamp(value):
|
||||
require(isinstance(value, str), 'timestamp_type')
|
||||
parsed = dt.datetime.fromisoformat(value.replace('Z', '+00:00'))
|
||||
# Rust/chrono emits RFC3339 nanoseconds. Python 3.10 accepts only up to
|
||||
# microseconds in fixed fractional widths. Retain the raw evidence; pad or
|
||||
# truncate only the comparison, including variable-width PostgreSQL times.
|
||||
comparable = re.sub(r'\.(\d+)(?=Z$|[+-]\d{2}:\d{2}$)',
|
||||
lambda match: '.'+(match[1]+'000000')[:6], value)
|
||||
parsed = dt.datetime.fromisoformat(comparable.replace('Z', '+00:00'))
|
||||
require(parsed.utcoffset() is not None, 'timestamp_timezone_required')
|
||||
return parsed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user