Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    14
    Vote Rating
    2
    KoSik is on a distinguished road

      0  

    Default 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:

    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);
            }
        },
    Should be:

    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);
            }
        },
    Problem is that field.dateFormat always returns "undefined";

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,645
    Vote Rating
    816
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Have you tried a recent release?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    14
    Vote Rating
    2
    KoSik is on a distinguished road

      0  

    Default


    Sorry for incorrect title of this bug. This bug is in latest release available for download - 2.0.1.1

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,645
    Vote Rating
    816
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    14
    Vote Rating
    2
    KoSik is on a distinguished road

      0  

    Default


    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.

Thread Participants: 1

Tags for this Thread