monterail / angular-date-range-picker

Pure Angular date range picker, no jQuery
MIT License
70 stars 50 forks source link

Make it respect the .utc() flag #4

Open pyetras opened 10 years ago

pyetras commented 10 years ago
scope.range = moment().range(moment.utc("2012-10-10"), ...);

...

scope.$watch "range", (n, o) ->
  scope.range.start #this is now in local timezone - hour is always set to 12PM, whilst for example in moment.utc("2012-10-10").startOf("day") it is at 1AM in GMT +1