From 9c852cdfd28da06763e14dcd5b2fac1b8fd9b9bf Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Mon, 13 May 2019 20:03:24 +0200 Subject: datetime: timezone fix in toIMF (denoland/deno_std#400) Original: https://github.com/denoland/deno_std/commit/49ae9439f71228326c1328d89502e437c00928fc --- datetime/mod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datetime/mod.ts') diff --git a/datetime/mod.ts b/datetime/mod.ts index 4d627fcbe..1fd3b348f 100644 --- a/datetime/mod.ts +++ b/datetime/mod.ts @@ -140,7 +140,7 @@ export function toIMF(date: Date): string { "Nov", "Dec" ]; - return `${days[date.getDay()]}, ${d} ${ + return `${days[date.getUTCDay()]}, ${d} ${ months[date.getUTCMonth()] } ${y} ${h}:${min}:${s} GMT`; } -- cgit v1.2.3