<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
When all you have is a timestamp datatype, everything works like a
timestamp. There are obviously some improvements to me made, like
doing all conversions from a fixed reference timezone (it would seem
the dates were encoded in GMT+2, are rendered correctly in the
portal, and rendered at GMT in the API). Really though, all dates in
biodiversity data need complex range representations to capture the
messiness of the data. Getting that to the point where it is usable
is a huge challenge though.<br>
<br>
- Alex<br>
<br>
<div class="moz-cite-prefix">On 11/30/2015 05:37 AM, Roderic Page
wrote:<br>
</div>
<blockquote
cite="mid:A284AB84-5255-4ED5-91D4-65F4E7BED902@glasgow.ac.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
This may be related to <a moz-do-not-send="true"
href="http://dev.gbif.org/issues/browse/POR-1508" class="">http://dev.gbif.org/issues/browse/POR-1508</a>
but it looks like <span style="white-space: pre-wrap;" class="">“eventDate”
is consistently incorrect in every API call I make, e.g. <a
moz-do-not-send="true"
href="http://api.gbif.org/v1/occurrence/891423484" class="">http://api.gbif.org/v1/occurrence/891423484</a>
returns:</span>
<div class=""><span style="white-space: pre-wrap;" class=""><br
class="">
</span></div>
<div class=""><span style="white-space: pre-wrap;" class="">“eventDate”:"2002-04-11T22:00:00.000+0000”</span></div>
<div class=""><span style="white-space: pre-wrap;" class=""><br
class="">
</span></div>
<div class=""><span style="white-space: pre-wrap;" class="">when
the verbatim date is 2002-04-12</span></div>
<div class=""><span style="white-space: pre-wrap;" class=""><br
class="">
</span></div>
<div class=""><span style="white-space: pre-wrap;" class="">The
web version of the record <a moz-do-not-send="true"
href="http://www.gbif.org/occurrence/891423484" class="">http://www.gbif.org/occurrence/891423484</a>
has the correct date, together with a time (12:00:00 AM) that
seems to be based on no evidence at all (it’s always puzzled
me why GBIF reports spuriously precise date and time strings
on the web page).</span></div>
<div class=""><span style="white-space: pre-wrap;" class=""><br
class="">
</span></div>
<div class=""><span style="white-space: pre-wrap;" class="">Regards</span></div>
<div class=""><span style="white-space: pre-wrap;" class=""><br
class="">
</span></div>
<div class=""><span style="white-space: pre-wrap;" class="">Rod</span></div>
<div class="">
<div class=""><br class="">
<div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows:
auto; word-spacing: 0px; -webkit-text-stroke-width:
0px; word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing:
normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; word-wrap:
break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;" class="">
---------------------------------------------------------<br class="">
Roderic Page<br class="">
Professor of Taxonomy<br class="">
Institute of Biodiversity, Animal Health and
Comparative Medicine<br class="">
College of Medical, Veterinary and Life Sciences<br
class="">
Graham Kerr Building<br class="">
University of Glasgow<br class="">
Glasgow G12 8QQ, UK<br class="">
<br class="">
Email: <span class="Apple-tab-span"
style="white-space: pre;"> </span><a
moz-do-not-send="true"
href="mailto:Roderic.Page@glasgow.ac.uk" class="">Roderic.Page@glasgow.ac.uk</a><br
class="">
Tel: <span class="Apple-tab-span"
style="white-space: pre;"> </span>+44 141 330
4778<br class="">
Skype: <span class="Apple-tab-span"
style="white-space: pre;"> </span>rdmpage<br
class="">
Facebook: <span class="Apple-tab-span"
style="white-space: pre;"> </span><a class="moz-txt-link-freetext" href="http://www.facebook.com/rdmpage">http://www.facebook.com/rdmpage</a><br
class="">
LinkedIn: <span class="Apple-tab-span"
style="white-space: pre;"> </span><a class="moz-txt-link-freetext" href="http://uk.linkedin.com/in/rdmpage">http://uk.linkedin.com/in/rdmpage</a><br
class="">
Twitter: <span class="Apple-tab-span"
style="white-space: pre;"> </span><a class="moz-txt-link-freetext" href="http://twitter.com/rdmpage">http://twitter.com/rdmpage</a><br
class="">
Blog: <span class="Apple-tab-span"
style="white-space: pre;"> </span><a class="moz-txt-link-freetext" href="http://iphylo.blogspot.com">http://iphylo.blogspot.com</a><br
class="">
ORCID: <span class="Apple-tab-span"
style="white-space: pre;"> </span><a class="moz-txt-link-freetext" href="http://orcid.org/0000-0002-7101-9767">http://orcid.org/0000-0002-7101-9767</a></div>
<div style="color: rgb(0, 0, 0); letter-spacing:
normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; word-wrap:
break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;" class="">
Citations: <span class="Apple-tab-span"
style="white-space: pre;"> </span><a
moz-do-not-send="true"
href="http://scholar.google.co.uk/citations?hl=en&user=4Z5WABAAAAAJ"
class="">http://scholar.google.co.uk/citations?hl=en&user=4Z5WABAAAAAJ</a></div>
<div style="color: rgb(0, 0, 0); letter-spacing:
normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; word-wrap:
break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;" class="">
ResearchGate<span class="Apple-tab-span"
style="white-space: pre;"> </span><a
moz-do-not-send="true"
href="https://www.researchgate.net/profile/Roderic_Page"
class="">https://www.researchgate.net/profile/Roderic_Page</a><br
class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
API-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:API-users@lists.gbif.org">API-users@lists.gbif.org</a>
<a class="moz-txt-link-freetext" href="http://lists.gbif.org/mailman/listinfo/api-users">http://lists.gbif.org/mailman/listinfo/api-users</a>
</pre>
</blockquote>
<br>
</body>
</html>