steveagi commited on
Commit
4ef9db9
·
1 Parent(s): 094500b

use China time

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -55,7 +55,10 @@ def run(hf_token, service, game, functionality, nlp_command):
55
 
56
  try:
57
  if service not in functionality_shared[1:]:
58
- print(f"{datetime.today().replace(microsecond=0)} [{game:<12}] [{user_name[:12]:<12}] {nlp_command}")
 
 
 
59
  # myobj = {
60
  # 'data': [service, game, r, nlp_command],
61
  # }
 
55
 
56
  try:
57
  if service not in functionality_shared[1:]:
58
+ t = datetime.now()
59
+ t = t.astimezone(ZoneInfo('Asia/Shanghai'))
60
+ t = t.replace(microsecond=0)
61
+ print(f"{t} [{game:<12}] [{user_name[:12]:<12}] {nlp_command}")
62
  # myobj = {
63
  # 'data': [service, game, r, nlp_command],
64
  # }