Commit a2d967f242460c8ad71b92a84c3dc207ef58bad9

Authored by selurvedu
1 parent 0e058b0e

Don't use isoformat() globally

... ... @@ -26,7 +26,7 @@ ${question_id} 0
26 26 [Arguments] @{ARGUMENTS}
27 27 [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо
28 28 ${api_wrapper}= prepare_api_wrapper ${USERS.users['${ARGUMENTS[0]}'].api_key} ${API_HOST_URL} ${api_version}
29   - ${creation_date} = get_now
  29 + ${creation_date} = get_date
30 30 Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} creation_date ${creation_date}
31 31 Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} client ${api_wrapper}
32 32 Log Variables
... ...
... ... @@ -24,7 +24,10 @@ from .initial_data import (
24 24 TZ = timezone(os.environ['TZ'] if 'TZ' in os.environ else 'Europe/Kiev')
25 25
26 26 def get_now():
27   - return datetime.now(TZ).isoformat()
  27 + return datetime.now(TZ)
  28 +
  29 +def get_date():
  30 + return get_now().isoformat()
28 31
29 32 def get_file_contents(path):
30 33 with open(path, 'r') as f:
... ...
Please register or login to post a comment