Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jan 3, 2025
1 parent 523e54e commit 7c944b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/admin/setting/timezone.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_timezone_list():
# 获取时区列表
# pytz.all_timezones | 所有
# pytz.common_timezones
return pytz.all_timezones
return mw.returnData(True, 'ok', pytz.all_timezones)

@blueprint.route('/sync_date', endpoint='sync_date', methods=['POST'])
@panel_login_required
Expand Down
3 changes: 2 additions & 1 deletion web/static/app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ function setTimezone(){
</div>",
success:function(){
var tbody = '';
$.post('/setting/get_timezone_list', {}, function (rdata) {
$.post('/setting/get_timezone_list', {}, function (data) {
var rdata = data['data'];
for (var i = 0; i < rdata.length; i++) {

if (rdata[i] == 'Asia/Shanghai'){
Expand Down

0 comments on commit 7c944b2

Please sign in to comment.