Commons icon indicating copy to clipboard operation
Commons copied to clipboard

Use format `yyyyMMdd_HHmmss` for current date

Open MrChocolatine opened this issue 1 year ago • 1 comments

What is it?

  • [ ] Bugfix
  • [X] Feature
  • [x] Codebase improvement

Description of the changes in your PR

Use format yyyyMMdd_HHmmss for current date.

This change is a partial effort towards:

  • https://github.com/FossifyOrg/Contacts/issues/89
  • FossifyOrg/General-Discussion#129

Fixes the following issue(s)

Prefix issues with "Fixes FossifyOrg/AppRepo" so that GitHub closes them when this PR is merged (note that each "Fixes #" should be in its own item). For Commons, it should always be in a format like "Fixes FossifyOrg/AppRepo#123" -->

  • Fixes FossifyOrg/General-Discussion/issues/129

Acknowledgement

MrChocolatine avatar May 11 '24 17:05 MrChocolatine

Hello

MrChocolatine avatar Aug 20 '24 16:08 MrChocolatine

Thanks but you shouldn't work on an issue until needs triage label is removed. It may not always get accepted.

naveensingh avatar Oct 25 '24 21:10 naveensingh

hi all, why was a format without distinction between datapoints selected? i use the 2025_01_15_14_43_23 as thats what the voice recorder has shipped for years now. i know youre "homogenising" and all but can you have an "archaic" dropdown or something. ive been using this file format for so long now and everything i have is organised in it.

RustoMCSpit avatar Jan 15 '25 18:01 RustoMCSpit

the below is what is currently used

    val simpleDateFormat = 
SimpleDateFormat("yyyyMMdd_HHmmss", 
Locale.getDefault())

the below is a second option i would like added, it is the exact same but it adds underscores between ALL points rather than just date and time

    val simpleSeparatedDateFormat = 
SimpleDateFormat("yyyy_MM_dd_HH_mm_ss", 
Locale.getDefault())

the below is a different variation of the second option that could be added though i have no need for it, it is the exact same but it separates time and date with a '-'

    val separatedDateFormat = 
SimpleDateFormat("yyyy_MM_dd-HH_mm_ss", 
Locale.getDefault())

RustoMCSpit avatar Jan 15 '25 18:01 RustoMCSpit