DmitrMakeev commited on
Commit
eaedfbd
·
verified ·
1 Parent(s): 8c2aa68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -206,14 +206,13 @@ def get_current_time():
206
  utc_now = datetime.utcnow()
207
  msk_tz = pytz.timezone('Europe/Moscow')
208
  msk_now = utc_now.replace(tzinfo=pytz.utc).astimezone(msk_tz)
209
- current_time = msk_now.strftime('%Y-%m-%d %H:%M:%S')
210
  return jsonify({'current_time': current_time})
211
 
212
 
213
 
214
 
215
 
216
-
217
  # Функция для очистки номера телефона
218
  def clean_phone_number_ss(phone_number):
219
  return re.sub(r'\D', '', phone_number)
 
206
  utc_now = datetime.utcnow()
207
  msk_tz = pytz.timezone('Europe/Moscow')
208
  msk_now = utc_now.replace(tzinfo=pytz.utc).astimezone(msk_tz)
209
+ current_time = msk_now.isoformat(timespec='microseconds')
210
  return jsonify({'current_time': current_time})
211
 
212
 
213
 
214
 
215
 
 
216
  # Функция для очистки номера телефона
217
  def clean_phone_number_ss(phone_number):
218
  return re.sub(r'\D', '', phone_number)