Skip to content

Commit

Permalink
fix date local format on different browser
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayin committed Aug 20, 2015
1 parent bba9e26 commit 254a69d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/www/js/views/base-widget-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ var BaseWidget = Backbone.View.extend({
this.model.fetch({
data : {
// if no from/to are found, provide reasonable defaults of a week ago and now, respectively
from : this.$el.find('[name=from]').val() || new Date(new Date() - 7*24*60*60000)
, to : this.$el.find('[name=to]').val() || new Date()
from : this.$el.find('[name=from]').val() || new Date(new Date() - 7*24*60*60000).toUTCString()
, to : this.$el.find('[name=to]').val() || new Date().toUTCString()
, server : this.server
}
})
Expand Down

0 comments on commit 254a69d

Please sign in to comment.