From 2d184e5a70f9070759628a99917c027f651d4132 Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Wed, 12 Sep 2018 19:56:34 +0200 Subject: [PATCH] Remove trailing blanc in full_date --- lib/datetime/dateTimeBlocksCodeGen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datetime/dateTimeBlocksCodeGen.js b/lib/datetime/dateTimeBlocksCodeGen.js index 3ae8040..c6d12e7 100644 --- a/lib/datetime/dateTimeBlocksCodeGen.js +++ b/lib/datetime/dateTimeBlocksCodeGen.js @@ -53,7 +53,7 @@ Blockly.JavaScript['datetime_convert_from_date'] = function (block) { code = 'new Date(' + value + ').toLocaleDateString("en-EN", {weekday: "short", day: "numeric", month: "short", year: "numeric", hour:"numeric", minute:"numeric", timeZone: "UTC", hour12: false}).replace(/,/g, "")'; break; case 'full_date': - code = 'new Date(' + value + ').toISOString().replace(/[TZ]/g, " ")'; + code = 'new Date(' + value + ').toISOString().replace("T", " ").replace("Z", "")'; break; case 'month_name': code = 'new Date(' + value + ').toLocaleDateString("en-EN", {month: "long", timeZone: "UTC"})';