change options to render date
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3dc9e7d2ca
commit
84a4377853
1 changed files with 6 additions and 2 deletions
|
@ -30,7 +30,11 @@ function navLink(lhref: string, ctx?: Context): Attrs {
|
||||||
return attrs;
|
return attrs;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SERVER_STARTED_AT = new Date();
|
const SERVER_STARTED_AT = new Date().toLocaleDateString(undefined, {
|
||||||
|
year: "numeric",
|
||||||
|
month: "2-digit",
|
||||||
|
day: "2-digit",
|
||||||
|
});
|
||||||
|
|
||||||
export function Footer(ctx: Context): AnyNode {
|
export function Footer(ctx: Context): AnyNode {
|
||||||
return E("footer", classNames("footer"), [
|
return E("footer", classNames("footer"), [
|
||||||
|
@ -38,7 +42,7 @@ export function Footer(ctx: Context): AnyNode {
|
||||||
E("div", classNames("gap-v-1x5"), [
|
E("div", classNames("gap-v-1x5"), [
|
||||||
E("div", [], [
|
E("div", [], [
|
||||||
E("b", [], "Updated At:"),
|
E("b", [], "Updated At:"),
|
||||||
SERVER_STARTED_AT.toLocaleDateString(),
|
SERVER_STARTED_AT,
|
||||||
]),
|
]),
|
||||||
E("div", [], [
|
E("div", [], [
|
||||||
RepoLink(ctx.tr.Source_code, "/pleshevskiy/pleshevski.ru"),
|
RepoLink(ctx.tr.Source_code, "/pleshevskiy/pleshevski.ru"),
|
||||||
|
|
Loading…
Reference in a new issue