Date format: “H:i D d M Y†

Talk about anything but keep it polite and reasonably clean.
Post Reply
User avatar
jdaw1
Cockburn 1851
Posts: 23638
Joined: 15:03 Thu 21 Jun 2007
Location: London
Contact:

Date format: “H:i D d M Y†

Post by jdaw1 »

I don’t like the default date formats supplied by phpBB, so use, in the required “PHP date()† format, “H:i D d M Y†, which appears as “20:51 Mon 14 Apr 2008†. Others are welcome to copy.

Edit: “G:i† is time in 24-hour format without a leading zero, “H:i† includes a leading zero, and is better. Hence this edit.
Last edited by jdaw1 on 19:30 Fri 02 May 2008, edited 1 time in total.
User avatar
Alex Bridgeman
Graham’s 1948
Posts: 14916
Joined: 13:41 Mon 25 Jun 2007
Location: Berkshire, UK

Post by Alex Bridgeman »

While clearly not meaningless drivel, this was meaningless to me. I understood most of the words used but totally failed to understand the meaning of the whole or how to apply the concepts therein.

I clearly need to drink more port.
Top Ports in 2023: Taylor 1896 Colheita, b. 2021. A perfect Port.

2024: Niepoort 1900 Colheita, b.1971. A near perfect Port.
User avatar
DRT
Fonseca 1966
Posts: 15779
Joined: 23:51 Wed 20 Jun 2007
Location: Chesterfield, UK
Contact:

Post by DRT »

Alex,

Our pedantic friend is talking about the format in which dates and times appear on TPF. This is configurable for each user.

In your profile you will find a field named Date Format. In that field you will see a string of characters. These determine the format of how dates will appear on the Forum for you. If you replace those charachters with the string G:i D d M Y the dates will appear in the format 20:51 Mon 14 Apr 2008

Derek
"The first duty of Port is to be red"
Ernest H. Cockburn
Conky
Fonseca 1980
Posts: 1770
Joined: 23:51 Wed 20 Jun 2007

Post by Conky »

Image
User avatar
DRT
Fonseca 1966
Posts: 15779
Joined: 23:51 Wed 20 Jun 2007
Location: Chesterfield, UK
Contact:

Post by DRT »

Conky wrote:Image
Alex,

To avoid confusion, Conky's emoticon is actually performing precisely the same task as is described in my earlier post. The only difference is that Conky's method is following the tried and tested approach used by British Bobbies for decades: if it doesn't do what you want, head butt it

Derek
"The first duty of Port is to be red"
Ernest H. Cockburn
User avatar
jdaw1
Cockburn 1851
Posts: 23638
Joined: 15:03 Thu 21 Jun 2007
Location: London
Contact:

I configured my time format on another BB,

Post by jdaw1 »

I configured my time format on another BB, and realised that I wanted a way to find it that doesn’t require logging in to :tpf: — hence this posting readable without a password. It’s really a note to self, masquerading as being helpful to you. It’s why I put the technical part in the title.
User avatar
Alex Bridgeman
Graham’s 1948
Posts: 14916
Joined: 13:41 Mon 25 Jun 2007
Location: Berkshire, UK

Post by Alex Bridgeman »

Thank you all for your most helpful explanations. I now understand that this thread is one which can be safely ignored in the future.
Top Ports in 2023: Taylor 1896 Colheita, b. 2021. A perfect Port.

2024: Niepoort 1900 Colheita, b.1971. A near perfect Port.
Post Reply