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
[TC 9.51] [TC 10 beta] Set tc.creationdate or tc.writedate through "Change attributes" dialog fails
Moderators: Hacker, petermad, Stefan2, white
[TC 9.51] [TC 10 beta] Set tc.creationdate or tc.writedate through "Change attributes" dialog fails
#248712 Personal licence
- ghisler(Author)
- Site Admin
- Posts: 50390
- 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
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.
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
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 9.51] [TC 10 beta] Set tc.creationdate or tc.writedate through "Change attributes" dialog fails
Thank you.
BTW, I can't imagine working in Windows without TC since wincmd early days.
BTW, I can't imagine working in Windows without TC since wincmd early days.
#248712 Personal licence