FIX: Future date input selector was not respecting timezone

This commit is contained in:
Robin Ward 2017-11-28 13:44:24 -05:00
parent f4b3306bf4
commit 23ee3047bf
2 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ export function timeframeDetails(id) {
return _timeframeById[id];
}
export const FORMAT = "YYYY-MM-DD HH:mm";
export const FORMAT = "YYYY-MM-DD HH:mm Z";
export default ComboBoxComponent.extend(DatetimeMixin, {
pluginApiIdentifiers: ["future-date-input-selector"],

View File

@ -657,11 +657,11 @@ class User < ActiveRecord::Base
end
def suspended?
!!(suspended_till && suspended_till > DateTime.now)
!!(suspended_till && suspended_till > Time.zone.now)
end
def silenced?
!!(silenced_till && silenced_till > DateTime.now)
!!(silenced_till && silenced_till > Time.zone.now)
end
def silenced_record