should be v1.0.5, but version isn't right; styling; new domain; new contact form

This commit is contained in:
Spencer Flagg 2022-07-05 12:39:42 +02:00
parent e9cd5c734e
commit a9de455c71

21
src/_data/buildInfo.js Normal file
View file

@ -0,0 +1,21 @@
const packageJson = require('../../package.json');
module.exports = () => {
const now = new Date();
const { timeZone } = Intl.DateTimeFormat().resolvedOptions();
const buildDate = Intl.DateTimeFormat('fr-CA', {
year: 'numeric',
month: '2-digit',
day: '2-digit',
}).format(now);
const buildTime = Intl.DateTimeFormat('nl-NL', { hour: '2-digit', minute: '2-digit' }).format(
now,
);
return {
version: packageJson.version,
time: {
raw: now.toISOString(),
formatted: `${buildDate} ${buildTime} ${timeZone}`,
},
};
};