summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools/transforms.py')
-rw-r--r--python/fatcat_tools/transforms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/fatcat_tools/transforms.py b/python/fatcat_tools/transforms.py
index 147acd7c..87facd57 100644
--- a/python/fatcat_tools/transforms.py
+++ b/python/fatcat_tools/transforms.py
@@ -46,7 +46,8 @@ def release_to_elasticsearch(release):
)
if release.release_date:
- t['release_date'] = release.release_date.strftime('%F')
+ # .isoformat() results in, eg, '2010-10-22' (YYYY-MM-DD)
+ t['release_date'] = release.release_date.isoformat()
container = release.container
container_is_kept = False