Merge pull request #8389 from adityahase/fix-time
fix(backgorund_job): Convert UTC time to local time
This commit is contained in:
commit
5c5a9af97d
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ import frappe
|
|||
|
||||
from rq import Queue, Worker
|
||||
from frappe.utils.background_jobs import get_redis_conn
|
||||
from frappe.utils import format_datetime, cint
|
||||
from frappe.utils import format_datetime, cint, convert_utc_to_user_timezone
|
||||
from frappe.utils.scheduler import is_scheduler_inactive
|
||||
from frappe import _
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ def get_info(show_failed=False):
|
|||
'job_name': j.kwargs.get('kwargs', {}).get('playbook_method') \
|
||||
or str(j.kwargs.get('job_name')),
|
||||
'status': j.status, 'queue': name,
|
||||
'creation': format_datetime(j.created_at),
|
||||
'creation': format_datetime(convert_utc_to_user_timezone(j.created_at)),
|
||||
'color': colors[j.status]
|
||||
})
|
||||
if j.exc_info:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue