shell properties time discrepancies

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
jupe
Posts: 3570
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

shell properties time discrepancies

Post 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
The bottom hour value is the "correct" one, maybe UTC offset isn't being applied?
To see the attached files, you need to log into the forum.

RalphM
Posts: 2143
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: shell properties time discrepancies

Post 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
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: shell properties time discrepancies

Post 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:

Post Reply