Web based family history software

Question entry dates; additional appreciated option

  • mariannevanharten
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 6 months ago #1 by mariannevanharten
entry dates; additional appreciated option was created by mariannevanharten
In the hints for entry dates I see the format how to entry dates. Today, September 28, e.g. can be entered as: 28-09-18.
I prefer also another entry format, which is not available now: 28092018 (without dashes, dots, spaces, etc.).
My current (offline) uses these option and I like it very much.

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
4 years 5 months ago - 4 years 5 months ago #2 by bertkoor
Replied by bertkoor on topic entry dates; additional appreciated option
It's a small miracle this works at all, with half the world putting the month before day. In pure administrative packages I worked with, it always was formatted yyyymmdd. With all-numbers and no delimiters such as hyphens, spaces, dots or slashes it's a bit of a guessing game what portion goes where.

I'll search the codebase for "dd-MM-yyyy", it might be easy to add ddMMyyyy as well.

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 4 years 5 months ago by bertkoor.

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
4 years 5 months ago - 4 years 5 months ago #3 by bertkoor
Replied by bertkoor on topic entry dates; additional appreciated option
Ok, done a search. 269 matches mostly in package vendor/nesbot/carbon. Not easy to see on a mobile if there's anything specific in webtrees.
So no luck, alas... You'll have to adapt to either enterering spaces, dots, hyphens or slashes between the numbers. NB leading zeroes may be omitted.

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 4 years 5 months ago by bertkoor.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #4 by fisharebest
Replied by fisharebest on topic entry dates; additional appreciated option
> I'll search the codebase for "dd-MM-yyyy", it might be easy to add ddMMyyyy as well.

The code is here: github.com/fisharebest/webtrees/blob/mas...ebtrees.js#L291-L312

(It gets compiled/minified for the releases, so you cannot simply modify this file. You'd need all the development tools as well).

You'll see that it looks at the date format for the current language to decide if the date is YMD, MDY or DMY.

There's no reason why we couldn't process 8-digits numbers into dates, using the same logic.

Create a new entry on the github issue tracker.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • mariannevanharten
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 5 months ago #5 by mariannevanharten
Replied by mariannevanharten on topic entry dates; additional appreciated option

fisharebest wrote: Create a new entry on the github issue tracker.


I did.
Because I didn't work with github issue tracker, I want to know if way I did it, is the right one.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #6 by fisharebest
Replied by fisharebest on topic entry dates; additional appreciated option
That looks good. Thanks.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}