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:
Jason Denney
2014-05-04 13:52:11 -04:00
parent 785e096aea
commit 517950c42c
3 changed files with 21 additions and 3 deletions
+5 -2
View File
@@ -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){