mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] empty date return empty string
This commit is contained in:
parent
5c4dd01df6
commit
e4fc3c08dc
2 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,8 @@
|
|||
},
|
||||
methods: {
|
||||
timestampToDate: function (timestamp) {
|
||||
if (timestamp === null) return "";
|
||||
|
||||
return new Date(timestamp * 1000).toLocaleString()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
},
|
||||
methods: {
|
||||
timestampToDate: function (timestamp) {
|
||||
if (timestamp === null) return "";
|
||||
|
||||
return new Date(timestamp * 1000).toLocaleString()
|
||||
},
|
||||
cancelJob: function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue