short dates and long dates

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
pierredu
Registered User
Posts: 33
Joined: Sat Dec 05, 2015 7:21 am

short dates and long dates

Post by pierredu » Fri Feb 26, 2016 2:20 pm

Hello,

In the ACP, the administrator can give a pattern to produce date strings (on the model of PHP date function). In the UCP, the user can override this option to customise the display at his/her taste. Fine.

Those date strings are used in different places, and here begins the problem.
Let's say that i take d M Y H:i:s. This is fine for a post or a topic, because I can use some precision just to know whether the post is one hour old or one day old.
On the other hand, this same string is used for the registration date. And this is time it is clearly overkill, since the date dd:MM:YYYY can be of interest, but surely not the time of the day (and surely not the day of the week).

Therefore, I think there should be two strings to be defined in the ACP/UCP, on short and one long date.

User avatar
RMcGirr83
Registered User
Posts: 357
Joined: Fri Mar 09, 2007 1:51 am
Contact:

Re: short dates and long dates

Post by RMcGirr83 » Fri Feb 26, 2016 4:57 pm

Seems to be minutia to me.
Do not hire Christian Bullock he won't finish the job and will keep your money

User avatar
david63
Registered User
Posts: 220
Joined: Mon Feb 07, 2005 7:23 am
Location: Lancashire, UK

Re: short dates and long dates

Post by david63 » Fri Feb 26, 2016 8:58 pm

And can easily be fixed, if necessary, with an extension.
David
Remember: You only know what you know -
and you do not know what you do not know!

User avatar
John P
Posts: 156
Joined: Sun Nov 04, 2012 7:39 am
Location: Netherlands
Contact:

Re: short dates and long dates

Post by John P » Sun Feb 28, 2016 8:12 am


User avatar
david63
Registered User
Posts: 220
Joined: Mon Feb 07, 2005 7:23 am
Location: Lancashire, UK

Re: short dates and long dates

Post by david63 » Sun Feb 28, 2016 8:17 am

John P wrote:
Sun Feb 28, 2016 8:12 am
Something like this https://github.com/ForumHulp/joined ?
Possibly - but I was thinking more of https://www.phpbb.com/customise/db/exte ... te_format/
David
Remember: You only know what you know -
and you do not know what you do not know!

User avatar
pierredu
Registered User
Posts: 33
Joined: Sat Dec 05, 2015 7:21 am

Re: short dates and long dates

Post by pierredu » Sun Feb 28, 2016 1:45 pm

Thanks for the pointers.

Post Reply