Skip to content

Commit

Permalink
Custom widgets - added time zone to "deployed" timestamp (#1942)
Browse files Browse the repository at this point in the history
  • Loading branch information
JMach1 authored Oct 26, 2022
1 parent 72c7fa6 commit fb057d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts.v2/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function listFilesInDirectory(dir) {
}

/**
* Attempts to get a develoer portal storage connection string in two ways:
* Attempts to get a developer portal storage connection string in two ways:
* 1) if the connection string is explicitly set by the user, use it.
* 2) retrieving the connection string from the management API using the instance endpoint and SAS token
* @param {string} managementApiEndpoint the management endpoint of service instance
Expand Down
7 changes: 6 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,12 @@
<!-- 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>
<!-- ko if: $component.config.deployedOn -->
<span data-bind="text: new Date(config.deployedOn).toLocaleString(undefined, {timeZoneName: 'short'})"></span><br/>
<!-- /ko -->
<!-- ko ifnot: $component.config.deployedOn -->
<span>The widget hasn't been deployed yet.</span>
<!-- /ko -->
</p>

<details>
Expand Down

0 comments on commit fb057d4

Please sign in to comment.