mirror of https://github.com/rancher/dartboard.git
remove inifinitely recursive Date() function (#55)
This commit is contained in:
parent
8b4a04bedb
commit
c8c62cc430
|
|
@ -184,14 +184,6 @@ export function firstLogin(baseUrl, cookies, bootstrapPassword, password) {
|
|||
}
|
||||
}
|
||||
|
||||
export function Date(year, month, day) {
|
||||
if (typeof year !== "undefined" &&
|
||||
typeof month !== "undefined" &&
|
||||
typeof day !== "undefined"
|
||||
) return new Date(year, month, day)
|
||||
return new Date()
|
||||
}
|
||||
|
||||
export function timestamp() {
|
||||
return new Date().toISOString()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue