Skip to content

saved "date" returns timestemp..? #1696

@neo-xy

Description

@neo-xy

I just made an update after which I started to get error with all the "date" objects retrived from firestore, ex:
I have this class:
class Shift{ statDate?:Date; endDate?:Date; employeeId?:string; }
so that later I can just use it in my html like so
{{shift.startDate|date:"yyyy MMM dd":"":""}}
but now the value of startDate is now retrived as a timestemp
made a fix this.firestore.firestore.settings({ timestampsInSnapshots: false });
but now I'm getting message

@firebase/firestore: Firestore (4.13.0):
The behavior for Date objects stored in Firestore is going to change
AND YOUR APP MAY BREAK

do I realy need to change logic everywhere in my application, I have object with "Date"s all over the place:S...?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions