From 18cba543a4a2a517b15723a8be238a4397b44918 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 28 Dec 2020 15:35:06 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/util.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/util.cs b/source/Plugins/AyaNova.Plugin.V8/util.cs index 0a28f0f..fa63b07 100644 --- a/source/Plugins/AyaNova.Plugin.V8/util.cs +++ b/source/Plugins/AyaNova.Plugin.V8/util.cs @@ -342,7 +342,7 @@ namespace AyaNova.PlugIn.V8 /////////////////////////////// // v7 to v8 Date conversion - // + //NOTE: ensure null for empty date // public static string DateToV8(object o, bool neverEmpty = false) { return DateToV8(o.ToString(), neverEmpty); } public static string DateToV8(string s, bool neverEmpty = false) @@ -355,7 +355,7 @@ namespace AyaNova.PlugIn.V8 } else { - return string.Empty; + return null; } } @@ -366,7 +366,7 @@ namespace AyaNova.PlugIn.V8 //couldn't be parsed if (neverEmpty) return DateTime.UtcNow.ToString("o"); - return string.Empty; + return null; } ///////////////////////////////