summaryrefslogtreecommitdiff
path: root/encoding/toml.ts
diff options
context:
space:
mode:
Diffstat (limited to 'encoding/toml.ts')
-rw-r--r--encoding/toml.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/encoding/toml.ts b/encoding/toml.ts
index e93903fae..8a53a8300 100644
--- a/encoding/toml.ts
+++ b/encoding/toml.ts
@@ -507,8 +507,9 @@ class Dumper {
const min = dtPad(value.getUTCMinutes().toString());
const s = dtPad(value.getUTCSeconds().toString());
const ms = dtPad(value.getUTCMilliseconds().toString(), 3);
- const fmtDate = `${value.getUTCFullYear()}-${m}-${d}T${h}:${min}:${s}.${ms}`;
- return `${this._declaration(title)}${fmtDate}`;
+ // formated date
+ const fData = `${value.getUTCFullYear()}-${m}-${d}T${h}:${min}:${s}.${ms}`;
+ return `${this._declaration(title)}${fData}`;
}
_format(): string[] {
const rDeclaration = /(.*)\s=/;