|
@@ -110,6 +110,14 @@ def getTZ(request):
|
|
if len(uid) == 20:
|
|
if len(uid) == 20:
|
|
print(uid)
|
|
print(uid)
|
|
info = CommonService.getIpIpInfo(ip=ip, lang=lang)
|
|
info = CommonService.getIpIpInfo(ip=ip, lang=lang)
|
|
|
|
+ tz = info['utc_offset']
|
|
|
|
+ if ':' not in info['utc_offset']:
|
|
|
|
+ info['utc_offset'] = info['utc_offset'] + ':00'
|
|
|
|
+ gmtz = tz.replace('UTC','GMT')
|
|
|
|
+ if ':' not in gmtz:
|
|
|
|
+ gmtz = gmtz+':00'
|
|
|
|
+ info['gmt_offset'] = gmtz
|
|
|
|
+
|
|
# tz = info.timezone
|
|
# tz = info.timezone
|
|
# of = info.utc_offset
|
|
# of = info.utc_offset
|
|
# from var_dump import var_dump
|
|
# from var_dump import var_dump
|