Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 943
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Date/Time format question

Started by Zirc, September 20, 2010, 12:38:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zirc

In the shoutbox and the recent posts blocks it has the time when these items were posted in the format of:

[Full month, date, full year, H:M:S am/pm]

Where would I begin to look to change the format of these items to something like the following:

[Numeric M-D-Y, H:M am/pm]

Thanks.  I have looked in the Recent Posts function in portalblocks.php and it lists $item['date'] and nothing in the function defines the format so it must be elsewhere but I don't know where.

Nathaniel

The easiest solution to this, would be to set the '$user_info['time_offset']' variable at the start of the relevant functions (ie. sp_shoutbox, sp_recent) (store its previous value into a variable first), then set it back to its old value at the end of the function. If the $user_info variable is not listed in the globals at the start of the function, then you will need to add it.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Zirc

Thanks I'll see if i can muddle my way through what you suggested.  My php skills are novice at best so I'm not sure I'll be able to do it but I'll give it a shot.