This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/site/static/beta5/js/main-en.js

38 lines
747 B
JavaScript
Raw Normal View History

2016-01-10 11:01:49 +01:00
function formatDate(ts)
{
var d = new Date(ts * 1000);
var str, s2;
s2 = d.getUTCHours().toString();
if (s2.length == 1)
s2 = "0" + s2;
str = s2 + ':';
s2 = d.getUTCMinutes().toString();
if (s2.length == 1)
s2 = "0" + s2;
str += s2 + ':';
s2 = d.getUTCSeconds().toString();
if (s2.length == 1)
s2 = "0" + s2;
str += s2 + ' on ';
s2 = d.getUTCDate().toString();
if (s2.length == 1)
s2 = "0" + s2;
str += s2 + '/';
s2 = (d.getUTCMonth() + 1).toString();
if (s2.length == 1)
s2 = "0" + s2;
str += s2 + '/' + d.getUTCFullYear();
return str;
}
Component.Listing.notFoundText = 'No elements found';
Component.Listing.loadingText = 'Loading ...';
Component.Listing.errorText = 'Error: the list couldn\'t be loaded';