Date format in the downloadable menu/layout/skin list fixed

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12068 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
nagoon97 2012-11-03 09:03:15 +00:00
parent da5bc6ef02
commit 5fa752e3b9

View file

@ -2128,7 +2128,7 @@ jQuery(function($){
ScreenShotURL: item.item_screenshot_url.replace(/^http:\/\//, ""),
Score: item.package_star,
TotalVotes: item.package_voted,
LastUpdated: item.item_regdate,
LastUpdated: formatUpdatedDate(item.item_regdate),
TotalDownloads: item.package_downloaded,
IsInstalled: sIsInstalled
} ).data('sItemType', sItemType).data('sPackageSrl', item.package_srl);
@ -3208,6 +3208,15 @@ exec_xml("menu","getMenuAdminDetailSetup", params, completeTmp, response_tags);
});
function formatUpdatedDate(sDate){
//20120106184020
//2012-01-06 18:40:20
return sDate.replace(/(....)(..)(..)(..)(..)(..)/, function(all, year, mon, day, hour, min, sec){
return year+"-"+mon+"-"+day+" "+hour+":"+min+":"+sec;
});
}
top.fullSetupWinLoaded = function(){
var oWin = jQuery._xeAdminVar.oSetupWin;