HomePhuks

Date/time picker: Using UTC and sending ISO timestamps to the server instead of…

Authored by Polsaker on Jul 15 2019, 3:14 AM.

Description

Date/time picker: Using UTC and sending ISO timestamps to the server instead of unix ones

Details

Committed
PolsakerJul 15 2019, 3:14 AM
Pushed
PolsakerJul 15 2019, 3:14 AM
Parents
rTHb49793ff07fe: Fixing crash on api2 posting
Branches
Unknown
Tags
Unknown

Event Timeline

AOU added a subscriber: AOU.Jul 21 2019, 6:23 AM

"Close the poll at..." is locked. Can't pick a date.

AOU added a comment.Jul 21 2019, 8:48 AM

FIX: Poll.js

u.sub('#closetime', 'click', function(e){
    if(this.checked){
        document.getElementById('closetime_date').removeAttribute('disabled');
        document.querySelector('.input.date-picker-future.form-control.input').removeAttribute('disabled');
    }else{
        document.getElementById('closetime_date').setAttribute('disabled', true);
        document.querySelector('.input.date-picker-future.form-control.input').setAttribute('disabled', true);
        document.getElementById('closetime_date').value = '';
        document.querySelector('.input.date-picker-future.form-control.input').value = '';
    }
});