mirror of
https://github.com/halo-dev/plugin-s3.git
synced 2025-10-18 16:41:29 +00:00
fix: Correct the formatting of Milliseconds to be a 3-digit number (#126)
```release-note 修复重命名模板中 millisecond 没有被格式化3位数的问题 ```
This commit is contained in:
@@ -69,7 +69,7 @@ public class PlaceholderReplacer {
|
||||
|
||||
private static String currentMillisecond(Map<String, String> reusableParams) {
|
||||
LocalDateTime time = LocalDateTime.parse(reusableParams.get("time"));
|
||||
return String.valueOf(time.getNano() / 1000000);
|
||||
return String.format("%03d", time.getNano() / 1000000);
|
||||
}
|
||||
|
||||
private static String currentSecond(Map<String, String> reusableParams) {
|
||||
|
Reference in New Issue
Block a user