Explorar el Código

added whitelisted function get_time_zone (#3843)

version-14
Revant Nandgaonkar hace 8 años
committed by Rushabh Mehta
padre
commit
f8387ac039
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      frappe/client.py

+ 5
- 0
frappe/client.py Ver fichero

@@ -296,3 +296,8 @@ def get_js(items):
out.append(code)

return out

@frappe.whitelist(allow_guest=True)
def get_time_zone():
'''Returns default time zone'''
return {"time_zone": frappe.defaults.get_defaults().get("time_zone")}

Cargando…
Cancelar
Guardar