From 46104f0158333a5fced9d1cd002ffb986ad1c274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ant=C3=B4nio=20Duarte?= Date: Mon, 11 Jan 2021 15:29:31 -0300 Subject: [PATCH] Added comment about the use of the gLocalTimeStampAsUTC variable --- sources/MVCFramework.Serializer.Commons.pas | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sources/MVCFramework.Serializer.Commons.pas b/sources/MVCFramework.Serializer.Commons.pas index 89b23512..81becafb 100644 --- a/sources/MVCFramework.Serializer.Commons.pas +++ b/sources/MVCFramework.Serializer.Commons.pas @@ -386,6 +386,20 @@ type end; var + /// + /// Use this variable when you want to convert your local time as UTC or when you receive an UTC ISOTimeStamp and + /// do not want to apply the time zone when converting. + /// The default value of gLocalTimeStampAsUTC = False. + /// + /// + /// * For gLocalTimeStampAsUTC = False and timezone: - 03:00 + /// ISOTimeStamp: 2021-01-11T14:22:17.763Z = DateTime: 2021-01-11 11:22:17.763 + /// DateTime: 2021-01-11 14:22:17.763 = ISOTimeStamp: 2021-01-11T14:22:17.763-03:00 + /// + /// * For gLocalTimeStampAsUTC = True and timezone: - 03:00 + /// ISOTimeStamp: 2021-01-11T14:22:17.763Z = DateTime: 2021-01-11 14:22:17 + /// DateTime: 2021-01-11 14:22:17.763 = ISOTimeStamp: 2021-01-11T14:22:17.763Z + /// gLocalTimeStampAsUTC: Boolean; function DateTimeToISOTimeStamp(const ADateTime: TDateTime): string;