Skip to content

Commit

Permalink
Fix: date appears incorrectly for point annotations in IE11 (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanDeMicco authored Dec 10, 2018
1 parent 0e3fbff commit bcd6ae5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AnnotationThread.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class AnnotationThread extends EventEmitter {
can_delete: true
},
createdBy: this.api.user,
createdAt: new Date().toLocaleString()
createdAt: new Date().toISOString()
});

this.state = STATES.inactive;
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/DrawingModeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class DrawingModeController extends AnnotationModeController {
canAnnotate: true,
canDelete: true,
createdBy: this.api.user,
createdAt: new Date().toLocaleString(),
createdAt: new Date().toISOString(),
isPending: true,
comments: []
});
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/PointModeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class PointModeController extends AnnotationModeController {
canAnnotate: true,
canDelete: true,
createdBy: this.api.user,
createdAt: new Date().toLocaleString(),
createdAt: new Date().toISOString(),
isPending: true,
comments: []
});
Expand Down
2 changes: 1 addition & 1 deletion src/doc/DocAnnotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ class DocAnnotator extends Annotator {
canAnnotate: true,
canDelete: true,
createdBy: this.api.user,
createdAt: new Date().toLocaleString()
createdAt: new Date().toISOString()
});
if (!thread) {
this.handleValidationError();
Expand Down

0 comments on commit bcd6ae5

Please sign in to comment.