Revert "refactor: use renamed timezone utils (#34301)"

Revert "refactor: use renamed timezone utils (#34301)"

This reverts commit 164933aae8.
This commit is contained in:
Deepesh Garg
2023-03-07 17:56:57 +05:30
committed by GitHub
parent 164933aae8
commit a2e001a2da
3 changed files with 5 additions and 7 deletions

View File

@@ -10,7 +10,6 @@ import pytz
from frappe import _
from frappe.model.document import Document
from frappe.utils import cint
from frappe.utils.data import get_system_timezone
from pyyoutube import Api
@@ -65,7 +64,7 @@ def update_youtube_data():
frequency = get_frequency(frequency)
time = datetime.now()
timezone = pytz.timezone(get_system_timezone())
timezone = pytz.timezone(frappe.utils.get_time_zone())
site_time = time.astimezone(timezone)
if frequency == 30: