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:
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() {
|
||||
const sql = `
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user