Skip to content

Commit d81f4e9

Browse files
committed
Do not swallow last character in time format string Huachao#367
1 parent 11b960c commit d81f4e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/utils/httpVariableProviders/systemVariableProvider.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class SystemVariableProvider implements HttpVariableProvider {
101101
} else if (type === 'iso8601') {
102102
return { value: date.toISOString() };
103103
} else {
104-
return { value: date.format(type.slice(1, type.length - 2)) };
104+
return { value: date.format(type.slice(1, type.length - 1)) };
105105
}
106106
}
107107

0 commit comments

Comments
 (0)