mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 03:19:27 +00:00
Added Test.getDateString
This commit is contained in:
10
lib/Test.js
10
lib/Test.js
@@ -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() {
|
async getTestResults() {
|
||||||
const sql = `
|
const sql = `
|
||||||
select
|
select
|
||||||
|
|||||||
Reference in New Issue
Block a user