How do I fill a single-digit date with "0"?
Opened this issue · 1 comments
kidzgy commented
rlv-dan commented
Find the following function in template.html
and change toLocaleString()
to something that suits you better:
function timestampToDate(timestamp){
// Convert UNIX timestamp to local date
// If you don't like the date format, try something else, such as toLocaleDateString() manually formatting the date here
return new Date(timestamp * 1000).toLocaleString();
}