1. #1
    Ext User
    Join Date
    Dec 2007
    Posts
    18
    Vote Rating
    0
    darkbob is on a distinguished road

      0  

    Default default date in datastore

    default date in datastore


    Hi,

    I was trying to use a datastore with date inside ( type:'date') for a grid.
    All worked as expected except one thing: when the date provided from mysql is blank (as there is none), the date field in the store is calculated to 31 dec 1969.

    I understand that the date type starts calculating at this date. Thus, since my blank date is incorrect, it's the value that's being calculated.

    Unfortunatly, this behavior is not wanted since a blank date (at least in my case ... method the override somewhere?) means that there is no data in that field. Thus, a default date could lead to bad interpretation.

    A custom renderer will not work because the date is changed before that ...


    Right now, I manage to sort that out by using a string and custom formatting in my renderer ( really ugly code considering the datetimefield returns a date and not a string) Meaning I have to do something like this

    /*
    *Awful code
    */
    if(typeof(value) == "string){
    //transform in a date and change the formatting
    }else{
    //it's a date format directly
    }

    Is it possible to achieve a blank date in a grid with the date type (beside doing if(value == 31 dec 1969 :P). And in the best scenario, not overriding anything( if possible)

    Thanks

  2. #2
    Ext User
    Join Date
    Dec 2007
    Posts
    18
    Vote Rating
    0
    darkbob is on a distinguished road

      0  

    Default


    Wrong section ,this if for ext 2.0 ( 1.x should be the same...)

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