Skip to content
Snippets Groups Projects
Commit 2ba9501d authored by store's avatar store
Browse files

bug: Correction needed because "%z" gives you timezone offset without colon.

parent d1186e2f
No related branches found
No related tags found
1 merge request!11Misc bug fixes
......@@ -6,4 +6,7 @@ class EeaUtils:
@staticmethod
def local_datetime():
now = datetime.now(tz=tzlocal()) # current date and time
return now.strftime("%Y-%m-%dT%H:%M:%S%z")
now_str = now.strftime("%Y-%m-%dT%H:%M:%S%z")
# Correction needed because "%z" gives you timezone offset without colon.
now_str_corr = "{0}:{1}".format(now_str[:-2], now_str[-2:])
return now_str_corr
......@@ -3,7 +3,7 @@ from flask_jwt_extended import create_access_token
import requests
version_endpoint = Blueprint('version', __name__)
current_version = "3.0.14"
current_version = "3.0.15"
@version_endpoint.route('/api/version', methods=['GET'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment