Skip to content

Commit

Permalink
2.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dilanx committed Feb 15, 2023
1 parent 4ab9531 commit 40305a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# Paper Change Log

### 2.2.4

_2023-02-15_

- Fixed the cache version number format.

### 2.2.3

_2023-02-14_

- Updated cache version number formats.
- Updated the cache version number format.

### 2.2.2

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paper.nu",
"version": "2.2.3",
"version": "2.2.4",
"private": true,
"homepage": "https://www.paper.nu",
"dependencies": {
Expand Down
7 changes: 6 additions & 1 deletion src/utility/Utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,12 @@ let Utility = {
const h = t.getHours();
const min = t.getMinutes();
const s = t.getSeconds();
return `${termId ? `${termId}-` : ''}${y}.${m}.${d}-${h}${min}${s}`;

const p = (n: number) => (n < 10 ? `0${n}` : `${n}`);

return `${termId ? `${termId}-` : ''}${y}.${p(m)}.${p(d)}-${p(h)}${p(
min
)}${p(s)}`;
},
};

Expand Down

0 comments on commit 40305a5

Please sign in to comment.