tamasfe / taplo

A TOML toolkit written in Rust
https://taplo.tamasfe.dev
MIT License
1.26k stars 108 forks source link

Date ISO 8601 not supported? #621

Open Minipada opened 2 weeks ago

Minipada commented 2 weeks ago

I have a date stored like this

token_expires_at = 0001-01-01T00:00:00Z

This is used in Gitlab CI runner configuration, which is autogenerated. Unfortunately, this is what I get with taplo:

error: invalid TOML
   ┌─ /config.toml:14:20
   │
14 │ token_expires_at = 0001-01-01T00:00:00Z
   │                    ^^^^^^^^^^^^^ expected value

error: invalid TOML
   ┌─ /config.toml:14:33
   │
14 │ token_expires_at = 0001-01-01T00:00:00Z
   │                                 ^ unexpected token

error: invalid TOML
   ┌─ /config.toml:14:34
   │
14 │ token_expires_at = 0001-01-01T00:00:00Z
   │                                  ^^ expected new line

error: invalid TOML
   ┌─ /config.toml:14:36
   │
14 │ token_expires_at = 0001-01-01T00:00:00Z
   │                                    ^ unexpected token

error: invalid TOML
   ┌─ /config.toml:14:37
   │
14 │ token_expires_at = 0001-01-01T00:00:00Z
   │                                     ^^^ expected new line

Is there any way I can go around it?