FIX: Future date input selector was not respecting timezone
This commit is contained in:
parent
f4b3306bf4
commit
23ee3047bf
|
@ -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"],
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue