Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
d7b24cb2
Commit
d7b24cb2
authored
3 months ago
by
Reinder Kraaij
Browse files
Options
Downloads
Patches
Plain Diff
return parsed time to uistome back
parent
c9dec285
No related branches found
No related tags found
1 merge request
!1074
return parsed time to uistome back
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/configuration/observation_field_settings.py
+2
-1
2 additions, 1 deletion
...tationcontrol/configuration/observation_field_settings.py
with
2 additions
and
1 deletion
tangostationcontrol/configuration/observation_field_settings.py
+
2
−
1
View file @
d7b24cb2
...
@@ -48,7 +48,8 @@ class ObservationFieldSettings(_ConfigurationBase):
...
@@ -48,7 +48,8 @@ class ObservationFieldSettings(_ConfigurationBase):
"""
Transparently convert datetime to string in isoformat
"""
"""
Transparently convert datetime to string in isoformat
"""
if
time
and
not
isinstance
(
time
,
datetime
):
if
time
and
not
isinstance
(
time
,
datetime
):
try
:
try
:
parser
.
isoparse
(
time
)
parsed_time
=
parser
.
isoparse
(
time
)
return
parsed_time
.
isoformat
()
except
ValueError
as
ex
:
except
ValueError
as
ex
:
raise
ex
raise
ex
if
time
and
isinstance
(
time
,
datetime
):
if
time
and
isinstance
(
time
,
datetime
):
...
...
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