diff --git a/components/fpspreadsheet/source/common/fpsopendocument.pas b/components/fpspreadsheet/source/common/fpsopendocument.pas
index 5e35e6f65..b67c3eada 100644
--- a/components/fpspreadsheet/source/common/fpsopendocument.pas
+++ b/components/fpspreadsheet/source/common/fpsopendocument.pas
@@ -5819,13 +5819,15 @@ begin
if book.MetaData.DateCreated > 0 then
begin
- s := FormatDateTime(ISO8601FormatExtended, book.MetaData.DateCreated);
+ // ODS stored the creation date in UTC.
+ s := FormatDateTime(ISO8601FormatExtendedUTC, book.MetaData.DateCreated);
AppendToStream(FSMeta, Format(
'%s', [s]));
end;
if book.MetaData.DateLastModified > 0 then
begin
+ // Date of last modification is NOT UTC.
s := FormatDateTime(ISO8601FormatExtended, book.MetaData.DateLastModified);
AppendToStream(FSMeta, Format(
'%s', [s]));