Skip to content

date check failed #5

@chaolinc

Description

@chaolinc

change the code to the following for the Date check to be working correctly.

if(c[key] instanceof Date){
if(c[key].getTime() != ref[key].getTime())
diff[key] = c[key];
} else {
if (c[key] !== ref[key]){

                diff[key] = c[key];
            }
        }

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