diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-10-08 04:48:20 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-10-08 04:48:20 +0300 |
commit | 5f74e380dde8f7564a976835ee254e8072e49181 (patch) | |
tree | 5727f98e07bba83a06dfe3a3eebcd12f13f7e59e /src | |
parent | 9974df7fc68439cda65e12fb68e959d5fe931d01 (diff) |
Fix lobby date not shown in moderation menu
Due to a change in the underlying component a date given as a timestamp
is no longer automatically converted to a Date object, so it needs to be
explicitly done.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/TopBar/TopBar.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index 39875657c..5b202db73 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -328,7 +328,7 @@ export default { // PHP timestamp is second-based; JavaScript timestamp is // millisecond based. - return this.conversation.lobbyTimer * 1000 + return new Date(this.conversation.lobbyTimer * 1000) }, dateTimePickerAttrs() { |