בנושא באג שמציג תאריך כ- XX.0.XX

דוגמה לבאג: 

תיקון:

יש להיכנס להיברידי: 

בלוג חדש - צד לקוח 

https://secure.konimbo.co.il/admin/user_files/252616/edit

ולשנות את שתי הפונקציות: date_format_ + dateDiv_, בכדי שיראו כך: 



function date_format_{{id}}() {
    try {
        var dateChange,dateChangeText;
        $("body .box .group3_wrapper .blog_date:not(.dateFormatChecked)").each(function() {
           
                   dateChangeText = $(this).text().split(" ")[0].split("-");
                   dateChange = new Date(parseInt(dateChangeText[0]), parseInt(dateChangeText[1]) - 1, parseInt(dateChangeText[2]), 0, 0, 0);
                   var day   = dateChange.getDate();  
                   var month = dateChange.getMonth() + 1;  
                   var year  = dateChange.getFullYear(); 
                   $(this).text(day + "." + month + "." + year);
                   $(this).addClass('dateFormatChecked');
               
              }); 
    } catch (error) {
        console.log("TCL: date_format_{{id}} -> error", error);
    }
}


function dateDiv_{{id}}() {  
    try {
        if ($('div.blog_date').length && $('div.blog_date').text() != '') {
            var blogdateText = $('div.blog_date').text().split(" ")[0].split("-");
            var blogDateFormt = new Date(parseInt(blogdateText[0]),parseInt(blogdateText[1]) - 1, parseInt(blogdateText[2]), 0, 0, 0); 
            var day   = blogDateFormt.getDate();  
            var month = blogDateFormt.getMonth() + 1;  
            var year  = blogDateFormt.getFullYear(); 
            var create_at = day + "." + month + "." + year; 
            $('div.blog_items').append('<div class="create_at"><span class="dateTitle"></span><span class="date">'+create_at+'</span> </div> <span class="space">|</span>');
        }
    } catch (error) {
        console.log("TCL: dateDiv_{{id}} -> error", error);
    }
}




מה השתנה? התאריכים נקבעים לפי פורמט חדש, מה שמטפל בבעיית ה-"0" במקום "12" בהצגת החודש.