Skip to content

Commit abe2f6e

Browse files
committed
strip datestamp to get the correct datetype
1 parent 1c61dff commit abe2f6e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pygeometa/schemas/gbif_eml/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def import_(self, metadata):
8181
"metadata": {
8282
"charset": "utf8",
8383
"hierarchylevel": "dataset",
84-
"datestamp": text_or_null(dataset.find("pubDate")) or "$date$",
84+
"datestamp": text_or_null(dataset.find("pubDate"), strip=True)
85+
or "$date$",
8586
},
8687
"identification": {},
8788
"contact": {},

0 commit comments

Comments
 (0)