Skip to content

Commit

Permalink
Fix #187
Browse files Browse the repository at this point in the history
  • Loading branch information
terehov committed Nov 29, 2022
1 parent aa3ac00 commit deabf24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BaseLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class BaseLogger<LogObj> {
} else {
placeholderValues["yyyy"] = logObjMeta?.date?.getFullYear() ?? "----";
placeholderValues["mm"] = formatNumberAddZeros(logObjMeta?.date?.getMonth(), 2, 1);
placeholderValues["dd"] = formatNumberAddZeros(logObjMeta?.date?.getDate(), 2, 1);
placeholderValues["dd"] = formatNumberAddZeros(logObjMeta?.date?.getDate(), 2);
placeholderValues["hh"] = formatNumberAddZeros(logObjMeta?.date?.getHours(), 2);
placeholderValues["MM"] = formatNumberAddZeros(logObjMeta?.date?.getMinutes(), 2);
placeholderValues["ss"] = formatNumberAddZeros(logObjMeta?.date?.getSeconds(), 2);
Expand Down
2 changes: 1 addition & 1 deletion tests/Nodejs/7_pretty_Settings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ describe("Pretty: Settings", () => {
const dateMonth = new Date().getMonth();
const mm = dateMonth == null ? "--" : dateMonth < 9 ? "0" + (dateMonth + 1) : dateMonth + 1;
const dateDay = new Date().getDate();
const dd = dateDay == null ? "--" : dateDay < 9 ? "0" + (dateDay + 1) : dateDay + 1;
const dd = dateDay == null ? "--" : dateDay < 10 ? "0" + dateDay : dateDay;
const dateHours = new Date().getHours();
const hh = dateHours == null ? "--" : dateHours < 10 ? "0" + dateHours : dateHours;
const dateMinutes = new Date().getMinutes();
Expand Down

0 comments on commit deabf24

Please sign in to comment.