@@ -3,6 +3,7 @@
*/
$(function(){
var d = new Date();
+ var month = d.getMonth < 9 ? "0" + (d.getMonth() + 1) : d.getMonth() + 1;
var day = d.getDate() <= 9 ? "0" + d.getDate() : d.getDate();
- $("#today").attr("href", "http://chatlogs.jabber.ru/golang@conference.jabber.ru/"+d.getFullYear()+"/"+(d.getMonth() + 1)+"/"+day+".html");
+ $("#today").attr("href", "http://chatlogs.jabber.ru/golang@conference.jabber.ru/"+d.getFullYear()+"/"+month+"/"+day+".html");
});