<?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: client_modified on filesListFolder entries all in UTC, lose TZ info in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/client-modified-on-filesListFolder-entries-all-in-UTC-lose-TZ/m-p/483176#M24330</link>
    <description>&lt;P&gt;The "Automatic time zone" setting applies to the&amp;nbsp;Dropbox UI, not the&amp;nbsp;Dropbox API. The&amp;nbsp;Dropbox API&amp;nbsp;uses UTC for file metadata, and API clients can then format times to display them in whatever format and time zone desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, the&amp;nbsp;Dropbox API returns two pieces of time information in the standard file metadata for all files:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;client_modified&lt;/STRONG&gt; &lt;EM&gt;Timestamp(format="%Y-%m-%dT%H:%M:%SZ")&lt;/EM&gt; For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.&lt;BR /&gt;&lt;STRONG&gt;server_modified&lt;/STRONG&gt; &lt;EM&gt;Timestamp(format="%Y-%m-%dT%H:%M:%SZ")&lt;/EM&gt; The last time the file was modified on Dropbox.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The 'server_modified' time is always the time that the file was committed to the Dropbox servers. If you control the API client doing the upload in the first place, you can set 'client_modified' to whatever you want, e.g., using&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor" target="_self"&gt;filesUpload&lt;/A&gt; in the JavaScript SDK by setting the &lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FilesCommitInfo" target="_self"&gt;FilesCommitInfo&lt;/A&gt;.client_modified. (Based on your 'filesListFolder' reference it seems you're using the JavaScript SDK, but the same functionality exists in &lt;A href="https://www.dropbox.com/developers/documentation" target="_self"&gt;the other official SDKs&lt;/A&gt; as well as &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;the HTTPS interface&lt;/A&gt; itself.) If&amp;nbsp;'client_modified' is not set by the client, it will be the same as&amp;nbsp;'server_modified'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your screenshot though, it looks like you may actually be referring to the datetime information embedded in a photo file in the "EXIF" data. The&amp;nbsp;Dropbox API doesn't return this photo metadata as metadata for the file by default, e.g,. as 'server_modified' or 'client_modified', but you can request some of this metadata separately, by setting&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FilesGetMetadataArg" target="_self"&gt;FilesGetMetadataArg&lt;/A&gt;.include_media_info to true when calling&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesGetMetadata__anchor" target="_self"&gt;filesGetMetadata&lt;/A&gt;. If available,&amp;nbsp;Dropbox will return some of this media metadata in the returned&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FilesFileMetadata" target="_self"&gt;FilesFileMetadata&lt;/A&gt;.media_info. For example, the time of the photograph, if available in the EXIF data, will be returned in&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FilesPhotoMetadata" target="_self"&gt;FilesPhotoMetadata&lt;/A&gt;.time_taken.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 19:21:21 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-12-30T19:21:21Z</dc:date>
    <item>
      <title>client_modified on filesListFolder entries all in UTC, lose TZ info</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/client-modified-on-filesListFolder-entries-all-in-UTC-lose-TZ/m-p/483158#M24328</link>
      <description>&lt;P&gt;Hi, I have Automatic Timezone set to &lt;STRONG&gt;ON&lt;/STRONG&gt; in my account but all the entries returned from an api call to &lt;STRONG&gt;filesListFolder &lt;/STRONG&gt;are in UTC.&lt;/P&gt;
&lt;P&gt;When I download a file on Windows then right click -&amp;gt; &lt;EM&gt;Properties -&amp;gt; Details&lt;/EM&gt; I see the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbhack.PNG" style="width: 306px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/20085iB48CC5138350D8F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="dbhack.PNG" alt="dbhack.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;with has the tiem with the correct timezone. Is there a way to get this information from the api call to &lt;STRONG&gt;filesListFolder&lt;/STRONG&gt;, preferably as &lt;EM&gt;client_modified&lt;/EM&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much for your help&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 10:12:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/client-modified-on-filesListFolder-entries-all-in-UTC-lose-TZ/m-p/483158#M24328</guid>
      <dc:creator>tiamat</dc:creator>
      <dc:date>2021-01-04T10:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: client_modified on filesListFolder entries all in UTC, lose TZ info</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/client-modified-on-filesListFolder-entries-all-in-UTC-lose-TZ/m-p/483176#M24330</link>
      <description>&lt;P&gt;The "Automatic time zone" setting applies to the&amp;nbsp;Dropbox UI, not the&amp;nbsp;Dropbox API. The&amp;nbsp;Dropbox API&amp;nbsp;uses UTC for file metadata, and API clients can then format times to display them in whatever format and time zone desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, the&amp;nbsp;Dropbox API returns two pieces of time information in the standard file metadata for all files:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;client_modified&lt;/STRONG&gt; &lt;EM&gt;Timestamp(format="%Y-%m-%dT%H:%M:%SZ")&lt;/EM&gt; For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.&lt;BR /&gt;&lt;STRONG&gt;server_modified&lt;/STRONG&gt; &lt;EM&gt;Timestamp(format="%Y-%m-%dT%H:%M:%SZ")&lt;/EM&gt; The last time the file was modified on Dropbox.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The 'server_modified' time is always the time that the file was committed to the Dropbox servers. If you control the API client doing the upload in the first place, you can set 'client_modified' to whatever you want, e.g., using&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor" target="_self"&gt;filesUpload&lt;/A&gt; in the JavaScript SDK by setting the &lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FilesCommitInfo" target="_self"&gt;FilesCommitInfo&lt;/A&gt;.client_modified. (Based on your 'filesListFolder' reference it seems you're using the JavaScript SDK, but the same functionality exists in &lt;A href="https://www.dropbox.com/developers/documentation" target="_self"&gt;the other official SDKs&lt;/A&gt; as well as &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;the HTTPS interface&lt;/A&gt; itself.) If&amp;nbsp;'client_modified' is not set by the client, it will be the same as&amp;nbsp;'server_modified'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your screenshot though, it looks like you may actually be referring to the datetime information embedded in a photo file in the "EXIF" data. The&amp;nbsp;Dropbox API doesn't return this photo metadata as metadata for the file by default, e.g,. as 'server_modified' or 'client_modified', but you can request some of this metadata separately, by setting&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FilesGetMetadataArg" target="_self"&gt;FilesGetMetadataArg&lt;/A&gt;.include_media_info to true when calling&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesGetMetadata__anchor" target="_self"&gt;filesGetMetadata&lt;/A&gt;. If available,&amp;nbsp;Dropbox will return some of this media metadata in the returned&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FilesFileMetadata" target="_self"&gt;FilesFileMetadata&lt;/A&gt;.media_info. For example, the time of the photograph, if available in the EXIF data, will be returned in&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FilesPhotoMetadata" target="_self"&gt;FilesPhotoMetadata&lt;/A&gt;.time_taken.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 19:21:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/client-modified-on-filesListFolder-entries-all-in-UTC-lose-TZ/m-p/483176#M24330</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-30T19:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: client_modified on filesListFolder entries all in UTC, lose TZ info</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/client-modified-on-filesListFolder-entries-all-in-UTC-lose-TZ/m-p/483200#M24335</link>
      <description>&lt;P&gt;thanks for the fast, detailed response.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 21:03:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/client-modified-on-filesListFolder-entries-all-in-UTC-lose-TZ/m-p/483200#M24335</guid>
      <dc:creator>tiamat</dc:creator>
      <dc:date>2020-12-30T21:03:19Z</dc:date>
    </item>
  </channel>
</rss>

