Skip to content

Commit

Permalink
complete action: fix time formatting
Browse files Browse the repository at this point in the history
Format minutes using mm -- MM is the current day of the month.
  • Loading branch information
tiljeset committed Jun 7, 2022
1 parent 6f4d4cf commit a211d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/codeactions/for-open-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class OpenTaskActions implements vscode.CodeActionProvider {
fix.edit = new vscode.WorkspaceEdit();
fix.edit.replace(document.uri, this.getTaskBoxRange(document, range), "[x]");

const time = moment().format("YYYY-MM-DD HH:MM");
const time = moment().format("YYYY-MM-DD HH:mm");

// FIXME: if current document is not current day, we need to insert also the current date (not only time)

Expand Down

0 comments on commit a211d51

Please sign in to comment.