Skip to content
Snippets Groups Projects
Commit e222ce23 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3778 replace seconds with milliseconds

parent 5e5815b7
Branches
Tags
No related merge requests found
......@@ -13,7 +13,7 @@ public class VorgangNummerSupplier {
public String get() {
var resultBuilder = addPrefix(new StringBuilder());
long currentTimeSeconds = Instant.now().getEpochSecond();
long currentTimeSeconds = Instant.now().toEpochMilli();
for (int i = 0; i < SUFFIX_LENGTH; i++) {
resultBuilder.append(BASE30_ALPHABET.charAt((int) currentTimeSeconds % 30));
currentTimeSeconds /= 30;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment