Results 1 to 5 of 5

Thread: Problem with saving date in proper format in Sencha Touch v 2.0.0.1

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    Have you tried a recent release?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    14
    Vote Rating
    2
      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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    14
    Vote Rating
    2
      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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •