Skip to content

Commit

Permalink
Refine localDatetime iso8601 format #648
Browse files Browse the repository at this point in the history
  • Loading branch information
Huachao committed Jul 29, 2020
1 parent 7571b68 commit ba88dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/httpVariableProviders/systemVariableProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) };
}
Expand Down

0 comments on commit ba88dcb

Please sign in to comment.