mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 16:31:38 -04:00
Attempting to go the proper way to fix dates
Still need to fix the bug/issue in netzke where it renders without the timezone
This commit is contained in:
@@ -22,6 +22,7 @@ Ext.define('Ext.ux.form.field.DateTime', {
|
||||
dateSubmitFormat: 'Y-m-d',
|
||||
timeFormat: 'H:i:s',
|
||||
timeSubmitFormat: 'H:i:s',
|
||||
submitFormat: 'c',
|
||||
dateConfig:{},
|
||||
timeConfig:{},
|
||||
|
||||
@@ -184,8 +185,10 @@ Ext.define('Ext.ux.form.field.DateTime', {
|
||||
var me = this
|
||||
,format = me.getFormat()
|
||||
,value = me.getValue();
|
||||
|
||||
return value ? Ext.Date.format(value, format) : null;
|
||||
console.log(value);
|
||||
console.log(format);
|
||||
console.log("formatted: " + Ext.Date.format(value, this.submitFormat));
|
||||
return value ? Ext.Date.format(value, this.submitFormat) : null;
|
||||
},
|
||||
|
||||
setValue: function(value){
|
||||
|
||||
Reference in New Issue
Block a user