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

Make default filename for screenshots use ISO8601 datetime format #1518

Conversation

edrogers
Copy link
Contributor

@edrogers edrogers commented Jan 8, 2023

Currently, the save_screenshot function uses a datetime format by default that (a) introduces spaces to the resulting filename and (b) does not match what is specified in the doc-string. This PR will replace those spaces and bring the datetime format closer to the ISO8601 format. (Since colons are a reserved character, the format will not exactly match ISO8601.)

Before: (the filename for a screenshot may look like)
demo 20230107 205720 203616.svg

After: (the filename for a screenshot may look like)
demo_2023-01-07T22_52_31.512393.svg


  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

Feedback welcome

@edrogers edrogers requested a review from davep January 19, 2023 01:15
Copy link
Contributor

@davep davep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@willmcgugan willmcgugan merged commit 6b51f00 into Textualize:main Jan 19, 2023
Copy link

@MrEnder0 MrEnder0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

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

Successfully merging this pull request may close these issues.

4 participants