Skip to content

Commit 69113e1

Browse files
committed
Fix ${time} special reference
Can't use colons in filenames :/
1 parent be8141b commit 69113e1

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/co/adityarajput/fileflow/utils

1 file changed

+1
-1
lines changed

app/src/main/java/co/adityarajput/fileflow/utils/String.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fun String.applyCustomReplacements() = this
5959
)
6060
.replace(
6161
$$"${time}",
62-
ZonedDateTime.now().withNano(0).format(DateTimeFormatter.ISO_LOCAL_TIME),
62+
ZonedDateTime.now().withNano(0).format(DateTimeFormatter.ISO_LOCAL_TIME).replace(":", "-"),
6363
)
6464
.replace(
6565
Regex("\\$\\{datetime:([^}]+)\\}"),

0 commit comments

Comments
 (0)