Skip to content

Commit

Permalink
🐛 fix(DOC.md): remove unnecessary dots in the time format to fix inco…
Browse files Browse the repository at this point in the history
…rrect time display

The unnecessary dots in the time format have been removed to fix the incorrect time display.
  • Loading branch information
ejcenteno committed Aug 16, 2023
1 parent 49f0f94 commit 4b01b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const date = new Date('1976-03-20');

const formatted = this.$morphDateFormat(date, 'MMM dd, yyyy');
const year = this.$morphDateFormat(date, 'yyyy');
const time = this.$morphDateFormat(new Date(), 'hh:mm a..aa');
const time = this.$morphDateFormat(new Date(), 'hh:mm a');

console.log(formatted); // Mar 20, 1976
console.log(year); // 1976
Expand Down

0 comments on commit 4b01b74

Please sign in to comment.