[TC 9.51] [TC 10 beta] Set tc.creationdate or tc.writedate through "Change attributes" dialog fails

Please report only one bug per message!

Moderators: white, sheep, Hacker, Stefan2

Post Reply
Andycar
Junior Member
Junior Member
Posts: 2
Joined: 2021-05-06, 09:07 UTC

[TC 9.51] [TC 10 beta] Set tc.creationdate or tc.writedate through "Change attributes" dialog fails

Post by *Andycar »

Hi! I think that I have found a bug:

Example 1:
- I have the folder named "2021"
- I want to set properties tc.creationdate and tc.writedate (i.e. FS creation date and modification date) to 1st Jan 2021
- I open "Change attributes" dialog and set the fields tc.creationdate and tc.writedate to 01.01.[=tc.Name]
Image: https://1drv.ms/u/s!Avk-d0hZPdXxg-o_qUl7EkI5QkxhAA?e=Mibz31

- After the operation has completed, I re-enter the "Change Attributes" dialog,and see that the values have changed to 01.01.2000
Image: https://1drv.ms/u/s!Avk-d0hZPdXxg-pASQhJylbPqX9bVQ?e=at9o2S
- And actually the folder's FS creation and modification time are both changed to "01.01.2000"


Example 2:
- I have the folder named "01.01.1999"
- I want to set properties tc.creationdate and tc.writedate (i.e. FS creation date and modification date) to 1st Jan 2021
- I open "Change attributes" dialog and set the fields tc.creationdate and tc.writedate to [=tc.Name]
- After the operation has completed, I re-enter the "Change Attributes" dialog,and see that the values also have changed to 01.01.2000
- And actually the folder's FS creation and modification time are both changed to "01.01.2000"

P.S. This also happenes in beta 10.
P.P.S. My regional standard for date is Russian (i.e., dd.MM.YYY) The behaviour is the same if I change the reginal standard to, let's this one - "DD/MM/YYYY"
P.P.P.S MRT (Multi-Rename Tool), however, shows the correct preview for the new name of the folder (to ensure that "01.01.{tc.Name]" field construction works in the intended way):
Image: https://1drv.ms/u/s!Avk-d0hZPdXxg-pBCwHERnOy8UTWFw?e=Xqoxk5
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41193
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 9.51] [TC 10 beta] Set tc.creationdate or tc.writedate through "Change attributes" dialog fails

Post by *ghisler(Author) »

Currently the change attributes accepts only three types of content with plugin fields:
1. Just the field, e.g. [=tc.creationdate]. Then the value is passed to the property you want to change without conversion to string
2. A field followed by other text. Then the value is converted to text and then to the format of the property you want to change
3. A field somewhere in the middle: This is only allowed for fields of type string

I will try to expand case 3 also for fields of other types.
Author of Total Commander
http://www.ghisler.com
Andycar
Junior Member
Junior Member
Posts: 2
Joined: 2021-05-06, 09:07 UTC

Re: [TC 9.51] [TC 10 beta] Set tc.creationdate or tc.writedate through "Change attributes" dialog fails

Post by *Andycar »

Thank you.
BTW, I can't imagine working in Windows without TC since wincmd early days.
Post Reply