Skip to content

Commit

Permalink
use provided timezone for delay due
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Feb 20, 2020
1 parent 42f5656 commit aa69357
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/app.js": "/app.js?id=a1d687fa187d60549f6a",
"/app.js": "/app.js?id=d0c3a4150154ed18692d",
"/app.css": "/app.css?id=81fbc8fec874ad3203d7",
"/app-dark.css": "/app-dark.css?id=3d68663a6ab8e86cb5dc"
}
8 changes: 6 additions & 2 deletions resources/js/screens/recentJobs/job.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,12 @@
},
delayed() {
if(this.unserialized && this.unserialized.delay){
return moment.utc(this.unserialized.delay.date).local().format('YYYY-MM-DD HH:mm:ss');
let unserialized = phpunserialize(this.job.payload.data.command);
if (unserialized && unserialized.delay) {
return moment.tz(unserialized.delay.date, unserialized.delay.timezone)
.local()
.format('YYYY-MM-DD HH:mm:ss');
}
return null;
Expand Down

0 comments on commit aa69357

Please sign in to comment.