Skip to content

Dates possibly not being loaded from data #1

@samchrisinger

Description

@samchrisinger

I noticed that the date created and modified are both wrong. After investigating the issue, I found that they are sent in the json, but end up blank. Looking at this ember-moment code inside helper-compute.js, I discovered this:

if (isBlank(datetime)) {
  if (allowEmpty) {
    return;
  } else {
    Ember.Logger.warn('ember-moment: an empty value (null, undefined, or "") was passed to moment-format');
  }
}

The warning is logged which implies that it is coming back as blank.Title and category work fine and even setting the attr type of dateCreated and dateModified to string didn't do anything either. It still came in empty.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions