Fixes# 1808 - Invalid date-time format was used in the Start/End time

for Job Schedule.

Thanks Susan for the report.
pull/3/head
Ashesh Vashi 2016-10-04 10:17:58 +05:30
parent df64108708
commit e52aeecd20
1 changed files with 6 additions and 6 deletions

View File

@ -265,18 +265,18 @@ function($, _, S, pgAdmin, moment, pgBrowser, Alertify, Backform) {
id: 'jscstart', label: '{{ _('Start') }}', type: 'text', id: 'jscstart', label: '{{ _('Start') }}', type: 'text',
control: 'datetimepicker', cell: 'moment', control: 'datetimepicker', cell: 'moment',
disabled: function() { return false; }, disabled: function() { return false; },
displayFormat: 'YYYY-MM-DD HH:mm:SS Z', displayFormat: 'YYYY-MM-DD HH:mm:ss Z',
modelFormat: 'YYYY-MM-DD HH:mm:SS Z', options: { modelFormat: 'YYYY-MM-DD HH:mm:ss Z', options: {
format: 'YYYY-MM-DD HH:mm:SS Z', format: 'YYYY-MM-DD HH:mm:ss Z',
}, cellHeaderClasses: 'width_percent_25' }, cellHeaderClasses: 'width_percent_25'
},{ },{
id: 'jscend', label: '{{ _('End') }}', type: 'text', id: 'jscend', label: '{{ _('End') }}', type: 'text',
control: 'datetimepicker', cell: 'moment', control: 'datetimepicker', cell: 'moment',
disabled: function() { return false; }, displayInUTC: false, disabled: function() { return false; }, displayInUTC: false,
displayFormat: 'YYYY-MM-DD HH:mm:SS Z', options: { displayFormat: 'YYYY-MM-DD HH:mm:ss Z', options: {
format: 'YYYY-MM-DD HH:mm:SS Z', useCurrent: false format: 'YYYY-MM-DD HH:mm:ss Z', useCurrent: false
}, cellHeaderClasses: 'width_percent_25', }, cellHeaderClasses: 'width_percent_25',
modelFormat: 'YYYY-MM-DD HH:mm:SS Z' modelFormat: 'YYYY-MM-DD HH:mm:ss Z'
},{ },{
id: 'jscweekdays', label:'{{ _('Week days') }}', type: 'text', id: 'jscweekdays', label:'{{ _('Week days') }}', type: 'text',
control: Backform.Control.extend({ control: Backform.Control.extend({