1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:19:26 +00:00

Added Test.getDateString

This commit is contained in:
2022-04-21 15:45:34 +00:00
parent 7093bd872e
commit 4fcdaaa521

View File

@@ -117,6 +117,16 @@ class Test {
);
}
get dateString() {
return this.date.toLocaleDateString('en-GB', {
timeZone: 'Europe/London',
weekday: 'long',
day: 'numeric',
month: 'numeric',
year: 'numeric'
});
}
async getTestResults() {
const sql = `
select