Skip to content

Commit

Permalink
fix: 解决get_current_timezone().zone报错 TencentBlueKing#7625
Browse files Browse the repository at this point in the history
  • Loading branch information
huangpixu committed Dec 10, 2024
1 parent a087028 commit c9ad7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/utils/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ThreadPool(_ThreadPool):

@staticmethod
def get_func_with_local(func):
tz = timezone.get_current_timezone().zone
tz = timezone.get_current_timezone()
lang = translation.get_language()
items = [item for item in local]
return partial(run_func_with_local, items, tz, lang, func)
Expand Down

0 comments on commit c9ad7aa

Please sign in to comment.