Skip to content
Snippets Groups Projects
Commit 1fdc1f69 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

changing format for event EMObservations and EMFootprint creation timestamps...

changing format for event EMObservations and EMFootprint creation timestamps when these objects are converted to dicts
parent c3e2cead
No related branches found
No related tags found
No related merge requests found
......@@ -464,7 +464,8 @@ def emObservationToDict(emo, request=None):
"N" : emo.N,
"footprint_count" : emo.emfootprint_set.count(),
"self" : uri,
"created" : emo.created.isoformat(),
"created" : emo.created.strftime(
settings.GRACE_STRFTIME_FORMAT),
"submitter" : emo.submitter.username,
"group" : emo.group.name,
"comment" : emo.comment,
......@@ -493,7 +494,8 @@ def emFootprintToDict(emf, request=None):
"dec" : emf.dec,
"raWidth" : emf.raWidth,
"decWidth" : emf.decWidth,
"start_time" : emf.start_time.isoformat(),
"start_time" : emf.start_time.strftime(
settings.GRACE_STRFTIME_FORMAT),
"exposure_time" : emf.exposure_time,
}
......
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