Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior on time strings #270

Open
enzet opened this issue Feb 8, 2022 · 0 comments
Open

Strange behavior on time strings #270

enzet opened this issue Feb 8, 2022 · 0 comments

Comments

@enzet
Copy link

enzet commented Feb 8, 2022

Hi!

Sorry if I missed this from the documentation of Mustache or YAML, but it seems like strange behavior to me (Mustache v1.1.1 installed from gem, Ubuntu 18.04):

$ echo "{{field}}" > template
$ echo "field: 5:42" | mustache - template
20520

Seems like 5:42 is treated as time and Mustache converts it to the number of seconds since the beginning of the day (20520 = 5 × 3600 + 42 × 60). Is this behavior expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant