Skip to content

DateConverter changed implementation on v8.2.1 #259

@dudumanbogdan

Description

@dudumanbogdan

Hello,

Can you please indicate an idea how to solve the problem of DateConverter implementation in version 8 as after updating from v6, our application has lots of breaking issues.

For example if we get undefined value for a Date property, the:

Initially, the implementation of date.converter.js for unmask was:

import { format, parse } from 'date-fns';

unmask(value: any) {
return format(value, 'YYYY-MM-DDTHH:mm:ssZ'); // with Undefined it was OK
}

Now:

DateConverter.prototype.unmask = /**
 * @param {?} value
 * @return {?}
 */
function (value) {
    return value.toISOString(); // with Undefined it is NOT OK :(
};

Thanks for any suggestion!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions