Skip to content

Commit

Permalink
fix phantom
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Apr 26, 2017
1 parent 09f56e8 commit 0717f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/transforms/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export default Transform.extend({
return new Date(`${serialized}:00`);

// this is a phantom specific bug fix in which +0000 is not supported
} else if (offset !== -1 && serialized.length - 4 === offset) {
} else if (offset !== -1 && serialized.length - 5 === offset) {
offset += 3;
new Date(serialized.slice(0, offset) + ':' + serialized.slice(offset));
return new Date(serialized.slice(0, offset) + ':' + serialized.slice(offset));
}
return new Date(serialized);
} else if (type === "number") {
Expand Down

0 comments on commit 0717f70

Please sign in to comment.