From ba88dcb76f90244ed78264943a2135161afb1ef0 Mon Sep 17 00:00:00 2001 From: Huachao Mao Date: Wed, 29 Jul 2020 18:02:01 +0800 Subject: [PATCH] Refine localDatetime iso8601 format #648 --- src/utils/httpVariableProviders/systemVariableProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/httpVariableProviders/systemVariableProvider.ts b/src/utils/httpVariableProviders/systemVariableProvider.ts index bdf22960..d6b5aeaf 100644 --- a/src/utils/httpVariableProviders/systemVariableProvider.ts +++ b/src/utils/httpVariableProviders/systemVariableProvider.ts @@ -134,7 +134,7 @@ export class SystemVariableProvider implements HttpVariableProvider { if (type === 'rfc1123') { return { value: date.locale('en').format('ddd, DD MMM YYYY HH:mm:ss ZZ') }; } else if (type === 'iso8601') { - return { value: date.locale('en').format('YYYY-MM-DDTHH:mm:ss.SSSZ') }; + return { value: date.format() }; } else { return { value: date.format(type.slice(1, type.length - 1)) }; }