Skip to content

Commit

Permalink
WiP deployed timezone note
Browse files Browse the repository at this point in the history
  • Loading branch information
JMach1 committed Sep 14, 2022
1 parent f59530d commit 402620f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/custom-widget-list/createWidget.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@
<!-- ko if: !!$component.config -->
<p style="margin: 0;">
Last deployed<br/>
<span data-bind="text: $component.config.deployedOn ? new Date(config.deployedOn).toLocaleString() : 'The widget hasn\'t been deployed yet.'"></span>
<!-- TODO Intl.DateTimeFormat(new Date(config.deployedOn)).resolvedOptions().timeZone -->
<!-- ko if: !!$component.config.deployedOn -->
<span data-bind="text: new Date(config.deployedOn).toLocaleString()"></span><br/>
<i data-bind="text: `(${new Date(config.deployedOn).toTimeString().match(/\((.+)\)/)[1]})`"></i>
<!-- /ko -->
<!-- ko if: !$component.config.deployedOn -->
<span>The widget hasn't been deployed yet.</span>
<!-- /ko -->
</p>

<details>
Expand Down

0 comments on commit 402620f

Please sign in to comment.