Skip to content

Commit

Permalink
Merge pull request #59 from maheshj01/date-fix
Browse files Browse the repository at this point in the history
fix lastUpdatedDate
  • Loading branch information
maheshj01 authored Oct 30, 2024
2 parents a98351d + d5d7985 commit 3e3c38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(main)/_models/Log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class Log implements ILog {
toFirestore(): any {
const doc: any = {
expiryDate: this.expiryDate ? this.expiryDate.toUTCString() : null,
lastUpdatedAt: this.lastUpdatedAt ? this.lastUpdatedAt.toUTCString() : null,
lastUpdatedAt: new Date().toUTCString(),
data: this.data,
createdDate: this.createdDate.toUTCString(),
title: this.title ? this.title : '',
Expand Down

0 comments on commit 3e3c38b

Please sign in to comment.