remove useless date conversion (#2165)

fixes the bug for Safari whent dates get corrupted on double conversion (createdAt/modifiedAt are already dates)
This commit is contained in:
Denys Vuika 2017-08-02 11:46:08 +01:00 committed by Mario Romano
parent 4addf0fb73
commit d9bacff0de

View File

@ -35,9 +35,6 @@ export class FavoritesApiService {
}
static remapEntry({ entry }: any): any {
entry.createdAt = new Date(entry.createdAt);
entry.modifiedAt = new Date(entry.modifiedAt);
entry.properties = {
'cm:title': entry.title,
'cm:description': entry.description