Page 1 of 1

shell properties time discrepancies

Posted: 30 Jul 2021 23:44
by jupe
There seems to be some bogus returns of the hours from time shell properties (via the various methods of retrieval eg. property()), this may only apply to my locale I am not sure, but for example I get the hours between these 2 properties (and other time date ones, like DateModified etc) to be always returned incorrectly for shell props, whereas XY special props shows the correct values. (I don't mean the formatting) eg,

text report("{Name}<crlf>{prop:System.Photo.DateTaken}<crlf>{prop:#image.datetaken}<crlf 2>", 1);

2021-07-31_072515.png
2021-07-31_072515.png (1.11 KiB) Viewed 457 times
The bottom hour value is the "correct" one, maybe UTC offset isn't being applied?

Re: shell properties time discrepancies

Posted: 31 Jul 2021 09:49
by RalphM
I can confirm this, I get the below with UTC+10:

Code: Select all

IMG_1274.JPG
30/10/2019 05:38:41
30/10/2019 15:38:41

Re: shell properties time discrepancies

Posted: 31 Jul 2021 10:17
by admin
The same issue is also true for prop:WhenTaken. I noted that somewhere deep down in the change log:

Code: Select all

v11.30.0104 - 2012-06-17 15:15
      ...
      Note that the numeric property identifier "#25" is preferred to 
      the verbal "WhenTaken" because the latter returns the time in UTC 
      (Coordinated Universal Time) instead of local time -- a mysterious 
      shell anomaly.
I could silently correct this anomaly, however, that might break old user code... hmmm... :maf: