Skip to content

Commit

Permalink
Remove trailing blanc in full_date
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbutenaers authored Sep 12, 2018
1 parent 6a0fa94 commit 2d184e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datetime/dateTimeBlocksCodeGen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"})';
Expand Down

0 comments on commit 2d184e5

Please sign in to comment.