<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Date vs datetime datatype: differences in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/date-vs-datetime-datatype-differences/m-p/5465#M2690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am seriously confused - I believe we had this question first on IRC, then on this platform a couple of days ago or at the end of April and I responded to that, but it can no longer be found. I hope the one who created it did not delete it after getting the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you do have to take care of the timezone in a CMIS query. The CMIS specification only defines support for datetime values - not date-only values - and the TIMESTAMP utiltiy for CMIS queries always includes a timezone identifier as part of the ISO 8601 notation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Storing a LocalDate only makes sense if you store some accompanying information about where that local date is valid or hard-code your solution to a very specific place (like in your case Roma). Since Alfresco must support multi-national, multi-regional use cases it cannot do that, so it includes the timezone with a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technically speaking Alfresco supports adding custom data types for properties, so e.g. a "d:localdate" (for very specific use cases where timezone really does not matter) could be implemented. Unfortunately the support for this in other parts of the application stack (e.g. SOLR for search) is insufficient to make this an easy endeavor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 10:10:21 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-05-15T10:10:21Z</dc:date>
    <item>
      <title>Date vs datetime datatype: differences</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/date-vs-datetime-datatype-differences/m-p/5464#M2689</link>
      <description>After a bit of testing, I think I found that there's only one difference: in Share edit/visualization mode the datetime shows/asks for the time.In the DB the value is always stored as a datetime WITH a Timezone.Here's an example. I've three properties associated to the same node_id, the first is a d</description>
      <pubDate>Wed, 10 May 2017 20:02:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/date-vs-datetime-datatype-differences/m-p/5464#M2689</guid>
      <dc:creator>lmattioli1</dc:creator>
      <dc:date>2017-05-10T20:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date vs datetime datatype: differences</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/date-vs-datetime-datatype-differences/m-p/5465#M2690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am seriously confused - I believe we had this question first on IRC, then on this platform a couple of days ago or at the end of April and I responded to that, but it can no longer be found. I hope the one who created it did not delete it after getting the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you do have to take care of the timezone in a CMIS query. The CMIS specification only defines support for datetime values - not date-only values - and the TIMESTAMP utiltiy for CMIS queries always includes a timezone identifier as part of the ISO 8601 notation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Storing a LocalDate only makes sense if you store some accompanying information about where that local date is valid or hard-code your solution to a very specific place (like in your case Roma). Since Alfresco must support multi-national, multi-regional use cases it cannot do that, so it includes the timezone with a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technically speaking Alfresco supports adding custom data types for properties, so e.g. a "d:localdate" (for very specific use cases where timezone really does not matter) could be implemented. Unfortunately the support for this in other parts of the application stack (e.g. SOLR for search) is insufficient to make this an easy endeavor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 10:10:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/date-vs-datetime-datatype-differences/m-p/5465#M2690</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-05-15T10:10:21Z</dc:date>
    </item>
  </channel>
</rss>

