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

[Bug]: Providing a strftime format string does not work #3

Open
1 task done
0risc opened this issue Jul 12, 2024 · 0 comments
Open
1 task done

[Bug]: Providing a strftime format string does not work #3

0risc opened this issue Jul 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@0risc
Copy link

0risc commented Jul 12, 2024

Guidelines

  • I agree to follow this project's Contributing Guidelines.

Project Version

1.1.1

Platform and OS Version

macOS 14.5

Affected Devices

All

Existing Issues

No response

What happened?

Using the -s flag to provide a format string in the style of %Y-%m-%d as described in the README does not work.

Steps to reproduce

  1. ./gotwc -s "%Y-%m-%dT%H:%M:%SZ"

Output:
UTC %Y-%m-%dT%H:%M:%SZ

Expected behavior

UTC 2024-07-12T16:03:52Z

Attachments

No response

Screenshots or Videos

No response

Additional Information

Using a Go time style format string does work

⟩ gotwc -s "2006-01-02T15:04:05Z"
UTC  2024-07-12T16:07:10Z
@0risc 0risc added the bug Something isn't working label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant