Replies: 2 comments 2 replies
-
if I run this yq --null-input -p yaml -o json '.Version = "2012-10-17" | .Version |= format_datetime("2006-01-02")' it is still
same with yq --null-input -p yaml -o json '.Version = "2012-10-17" | .Version |= with_dtf("2006-01-02"; format_datetime("2006-01-02"))' why? |
Beta Was this translation helpful? Give feedback.
0 replies
-
That is odd. Looking into it a little more, I can see what causes it (and I need to think about it a little more). When the As a work-around till that's fixed, you can do the following: a) don't use the formatter
or b) use the formatter, and force it back to a string
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to convert a yaml file to json file. Is there any global option to NOT convert timestamp properties according with RFC 3339? I would like to keep them as is.
Regards
Beta Was this translation helpful? Give feedback.
All reactions