Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
raven-administration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
raven
raven-administration
Commits
2ba9501d
Commit
2ba9501d
authored
1 year ago
by
store
Browse files
Options
Downloads
Patches
Plain Diff
bug: Correction needed because "%z" gives you timezone offset without colon.
parent
d1186e2f
No related branches found
No related tags found
1 merge request
!11
Misc bug fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/core/eea/eea_utils.py
+4
-1
4 additions, 1 deletion
api/core/eea/eea_utils.py
api/endpoints/version/routes.py
+1
-1
1 addition, 1 deletion
api/endpoints/version/routes.py
with
5 additions
and
2 deletions
api/core/eea/eea_utils.py
+
4
−
1
View file @
2ba9501d
...
...
@@ -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
This diff is collapsed.
Click to expand it.
api/endpoints/version/routes.py
+
1
−
1
View file @
2ba9501d
...
...
@@ -3,7 +3,7 @@ from flask_jwt_extended import create_access_token
import
requests
version_endpoint
=
Blueprint
(
'
version
'
,
__name__
)
current_version
=
"
3.0.1
4
"
current_version
=
"
3.0.1
5
"
@version_endpoint.route
(
'
/api/version
'
,
methods
=
[
'
GET
'
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment