-
25 Oct 2012 5:01 AM #1
Problem with saving date in proper format in Sencha Touch v 2.0.0.1
Problem with saving date in proper format in Sencha Touch v 2.0.0.1
In Ext.data.writer.Writer method writeDate should be modified.
Not it is:
Should be:Code:writeDate: function(field, date) { var dateFormat = field.dateFormat || 'timestamp'; switch (dateFormat) { case 'timestamp': return date.getTime()/1000; case 'time': return date.getTime(); default: return Ext.Date.format(date, dateFormat); } },
Problem is that field.dateFormat always returns "undefined";Code:writeDate: function(field, date) { var dateFormat = field.getDateFormat() || 'timestamp'; switch (dateFormat) { case 'timestamp': return date.getTime()/1000; case 'time': return date.getTime(); default: return Ext.Date.format(date, dateFormat); } },
-
25 Oct 2012 5:12 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
Have you tried a recent release?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
25 Oct 2012 5:58 AM #3
Sorry for incorrect title of this bug. This bug is in latest release available for download - 2.0.1.1
-
25 Oct 2012 6:00 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
25 Oct 2012 7:35 AM #5
It looks like new Sencha CMD v3 doesn't work well with update feature. I guess, that updating SDK manually may cause problems:
This is what I get when try to update SDK to 2.1.0-RC2 version:
Code:Sencha Cmd v3.0.0.190 [INFO ] init-properties: [INFO ] init-sencha-command: [INFO ] init: [INFO ] -before-app-upgrade: [INFO ] app-upgrade-impl: [ERROR] file /Users/yurevichcv/bin/Sencha/Cmd/3.0.0.190/plugins/touch/current/${framework.config.dir}/app-upgrade.js not found.
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote