Handle time only in UTC internally

This commit is contained in:
Ming Ming 2021-06-21 17:10:38 +08:00
parent 3e7b9ffe36
commit deacacdd96
2 changed files with 4 additions and 3 deletions

View file

@ -302,7 +302,8 @@ class File with EquatableMixin {
if (contentLength != null) "contentLength": contentLength, if (contentLength != null) "contentLength": contentLength,
if (contentType != null) "contentType": contentType, if (contentType != null) "contentType": contentType,
if (etag != null) "etag": etag, if (etag != null) "etag": etag,
if (lastModified != null) "lastModified": lastModified.toIso8601String(), if (lastModified != null)
"lastModified": lastModified.toUtc().toIso8601String(),
if (isCollection != null) "isCollection": isCollection, if (isCollection != null) "isCollection": isCollection,
if (usedBytes != null) "usedBytes": usedBytes, if (usedBytes != null) "usedBytes": usedBytes,
if (hasPreview != null) "hasPreview": hasPreview, if (hasPreview != null) "hasPreview": hasPreview,

View file

@ -134,8 +134,8 @@ class _CertInfo {
"sha1": sha1, "sha1": sha1,
"subject": subject, "subject": subject,
"issuer": issuer, "issuer": issuer,
"startValidity": startValidity.toIso8601String(), "startValidity": startValidity.toUtc().toIso8601String(),
"endValidity": endValidity.toIso8601String(), "endValidity": endValidity.toUtc().toIso8601String(),
}; };
} }