On the edge of being a bug -
timestamp's
type and
source_type arguments are case-sensitive and unfortunately the SC gives the impression that it works even though it doesn't when those arguments are capitalized.
Demo:
Code: Select all
"Timestamp Case Sensitivity"
$item = New("%temp%\<date yyyy-mm-dd_hhnnss>.txt", 'f',, 'u');
$property = '#date.modified';
$original = Property($property, $item);
timestamp 'm', '1990-01-01 1:00', $item;
$lowerCase = Property($property, $item);
timestamp 'M', '2000-02-02 2:00', $item;
$upperCase = Property($property, $item);
Echo <<<MESSAGE
File: '$item'
Modified date:
Original = $original
timestamp 'm', '1990-01-01 1:00': $lowerCase (Correct.)
timestamp 'M', '2000-02-02 2:00': $upperCase (Incorrect!)
MESSAGE;
delete 1,, $item;
Change-log message ready to be copied and pasted after issue is resolved.
Code: Select all
* SC timestamp: Now the type and source_type arguments are case-insensitive.