Currently archive-dump and sql-dump use a 12-hour clock format when generating the dump filenames, but do not include any indication of AM or PM.

When I'm taking several dumps several dumps a day, it can be difficult to choose a dump file by filename alone, and I need to run ls -l to be sure.

Can we switch to using 24-hour time formats in the dump filenames by default?

Members fund testing for the Drupal project. Drupal Association Learn more


andrewmacpherson’s picture

Status: Active » Needs review

This patch makes changes the default filename date formats to Ymd_His

This patch is against the 7.x-5.x branch. What's the policy for minor changes like this? Should it be made agfainst 8.x-6.x first, and backported, like core?

andrewmacpherson’s picture

forgot to add the patch

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Seems sensible.

moshe weitzman’s picture

Yes, like core (backport policy)

andrewmacpherson’s picture

Version: 7.x-5.x-dev » 8.x-6.x-dev
Status: Reviewed & tested by the community » Needs review
1.13 KB

Thanks Moshe. Here's a patch against 8.x-6.x

moshe weitzman’s picture

Status: Needs review » Fixed

Commtted to 5 and 6 branches. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.