File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -729,7 +729,8 @@ func replaceExifToolVars(
729729 continue
730730 }
731731
732- if current .attr == "DateTimeOriginal" {
732+ if current .attr == "DateTimeOriginal" &&
733+ current .transformToken == "dt" {
733734 o , err := meta .GetString ("OffsetTimeOriginal" )
734735 if err != nil {
735736 slog .Debug (
@@ -858,6 +859,11 @@ func transformString(source, token string) string {
858859 case "norm" :
859860 result , _ , err := transform .String (norm .NFKC , source )
860861 if err != nil {
862+ slog .Debug (
863+ "unable to perform unicode normalization" ,
864+ slog .String ("source" , source ),
865+ )
866+
861867 return source
862868 }
863869
@@ -869,6 +875,11 @@ func transformString(source, token string) string {
869875
870876 dateTime , err := dateparse .ParseAny (source )
871877 if err != nil {
878+ slog .Debug (
879+ "unable to parse datetime string" ,
880+ slog .String ("source" , source ),
881+ )
882+
872883 return source
873884 }
874885
You can’t perform that action at this time.
0 commit comments