Skip to content

Commit

Permalink
fix: properly handle plain dates
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyynthia committed May 15, 2024
1 parent 5b57a1e commit ec820fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class TomlDate extends Date {
} else {
offset = match[3] || null
date = date.toUpperCase()
if (!offset) date += 'Z'
if (!offset && hasTime) date += 'Z'
}
} else {
date = ''
Expand Down

0 comments on commit ec820fd

Please sign in to comment.