Browse Source

Fixed timezone patch

version-14
Anand Doshi 11 years ago
parent
commit
f836156ff4
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      frappe/patches/v4_0/replace_deprecated_timezones.py

+ 2
- 0
frappe/patches/v4_0/replace_deprecated_timezones.py View File

@@ -6,6 +6,8 @@ import frappe
from frappe.utils.momentjs import data as momentjs_data

def execute():
frappe.reload_doc("core", "doctype", "user")

ss = frappe.get_doc("System Settings", "System Settings")
if ss.time_zone in momentjs_data.get("links"):
ss.time_zone = momentjs_data["links"][ss.time_zone]


Loading…
Cancel
Save