This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
added whitelisted function get_time_zone (
#3843
)
version-14
Revant Nandgaonkar
8 years ago
committed by
Rushabh Mehta
parent
b1b71a6bb9
commit
f8387ac039
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
frappe/client.py
+ 5
- 0
frappe/client.py
View File
@@ -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")}
Write
Preview
Loading…
Cancel
Save