Compare commits

..

No commits in common. "08dac3359eabbd0554f296a25fb08df201e0db77" and "ddd6707807522deccc8ec70211a4dce1c430ed45" have entirely different histories.

2 changed files with 2 additions and 16 deletions

View file

@ -63,7 +63,7 @@ app.use((req, res, next) => {
});
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'msg.html'));
res.redirect('https://l.kcadev.org/discord'); // Redirect to KCA Discord for now.
});
app.get('/time.php', (req, res) => {
@ -84,8 +84,7 @@ app.get('/time.php', (req, res) => {
const parts = formatter.formatToParts(date);
const get = type => parts.find(p => p.type === type).value;
const formatted = `${get('day')}${get('month')}${get('year')}${get('hour')}${get('minute')}${get('second')}`;
const msg = fs.readFileSync(path.join(__dirname, 'msg.html'), 'utf8');
res.send(`${formatted}<br><br>${msg}`);
res.send(formatted);
} catch (e) {
res.status(400).send('Invalid timezone');
}

View file

@ -1,13 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Teknikk FA Clock v2</title>
</head>
<body>
Oh hello there. I'm sure you're wondering why this is alive again. Well, I'm not affiliated with Teknikk sadly, but I did find out the old domain was for sale and snagged it up. I figured hey, why not keep the old time server alive and get rid of those pesky HTTPSERVICE IS REQUIRED messages.<br><br>
My name is Chris by the way, I am the lead dev on a small group called KCA Development. You can pop by <a href="/">our Discord</a> if you want to chat!\n\nI'll keep this up, it doesn't cost me much to run, and I like the idea that some random person on the internet might see the clocks are working again lol<br><br>
- Chris
</body>
</html>