File name of zip-archives alternates between 1 and 2 digits #106
Labels
bug
Something isn't working
good first issue
Good for newcomers
up-for-grabs
https://up-for-grabs.net/
Brief bug description
The file name of zip-archives generated with timestamps could be improved to keep a consistent number of digits.
Running a backup at between 12:00 and 12:09
results in a file name of e.g.
2024-11-12-12-8-backup-ENVIRONMENT-ID but should likely be
2024-11-12-12-08-backup-ENVIRONMENT-ID.
Ensuring lower digits to start with 0 guarantees the zip archives to be in order of their creation when sorting files alphabetically in a file explorer or consuming archives in automations that relay on the file name.
Repro steps
npx @kontent-ai/data-ops@latest environment backup --environmentId=<environment-id> --apiKey=<Management-API-key>
Expected behavior
Consistent alphabetical and historical order.
Test environment
Additional context
This is a minor issue, being the purpose of documentation.
It has not been tested if this also applies to months or days (or hours - getting up to late xD).
Screenshots
No response
The text was updated successfully, but these errors were encountered: