1. #11
    Ext User
    Join Date
    Mar 2010
    Posts
    23
    Vote Rating
    0
    DominateQ is on a distinguished road

      0  

    Default


    If i don't multiplied by 1000 i don't get the date correctly.

    Attachment 20073
    I really don't know what to do and where to check what is wrong.
    I told you i find this example on internet.

  2. #12
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

    Default


    Code:
    datestamp:function(value) {
            value=value?new Date( value*1000 ).format("d-m-Y"):'N/A';
            return value; }

  3. #13
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

    Default


    test this function
    Code:
    renderDate = function (v,params,record)
    {
            var dt = new Date(v);    					    
            return dt.format('d/m/Y');               
    }

  4. #14
    Ext User
    Join Date
    Mar 2010
    Posts
    23
    Vote Rating
    0
    DominateQ is on a distinguished road

      0  

    Default


    Here is what i get usig that function as a renderer:
    img5.JPG
    and without using any renderer at all:
    img6.JPG

  5. #15
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

    Default


    you have a problem in the initial value of the date. send the json plz

  6. #16
    Sencha User
    Join Date
    Jan 2008
    Location
    Maryville, IL, US
    Posts
    288
    Vote Rating
    0
    httpdotcom is on a distinguished road

      0  

    Default


    Quote Originally Posted by issameddine View Post
    you have a problem in the initial value of the date. send the json plz
    I believe I mentioned that to him earlier, and it seems to have fallen on deaf ears. His SQL shows trying to use UNIX_TIMESTAMP, but something is probably getting mucked up in localization, or that it isn't necessary in the first place.

  7. #17
    Ext User
    Join Date
    Mar 2010
    Posts
    23
    Vote Rating
    0
    DominateQ is on a distinguished road

      0  

    Default


    Quote Originally Posted by httpdotcom View Post
    I believe I mentioned that to him earlier, and it seems to have fallen on deaf ears. His SQL shows trying to use UNIX_TIMESTAMP, but something is probably getting mucked up in localization, or that it isn't necessary in the first place.
    how/where can i find the initial value ??
    I don't understand what you ask for.

  8. #18
    Sencha User
    Join Date
    Jan 2008
    Location
    Maryville, IL, US
    Posts
    288
    Vote Rating
    0
    httpdotcom is on a distinguished road

      0  

    Default


    Quote Originally Posted by DominateQ View Post
    how/where can i find the initial value ??
    I don't understand what you ask for.
    You have a script that is producing JSON output to populate your grid. Take the output from that script and look at the date field and see why it isn't working the way you are hoping it to.

    It might actually be easier to change your SQL to produce more "formatted" date information, rather than using UNIX_TIMESTAMP. Return the date, from your database, in the format you want to display it, and then rendering becomes a moot point.

  9. #19
    Ext User
    Join Date
    Mar 2010
    Posts
    23
    Vote Rating
    0
    DominateQ is on a distinguished road

      0  

    Default


    Please find attached the JSON.php file archived as a zip file.
    Is this what you need to check to see what is the problem ?

    JSON.zip

  10. #20
    Sencha User
    Join Date
    Jan 2008
    Location
    Maryville, IL, US
    Posts
    288
    Vote Rating
    0
    httpdotcom is on a distinguished road

      0  

    Default


    Is the information in that file what you see in your grid? Of course not.
    You need to debug the output of
    Code:
    proxy: new Ext.data.HttpProxy({url: 'data.php?mode=load_form&form=incident_equip'})
    to see why your date data isn't what you are expecting.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi