PDA

View Full Version : PHP-Nuke - Time not being displayed in news articles?


jadison
04-20-2002, 10:58 PM
For those who actually run a PHP-Nuke site (Mntsnow, me, Praetorian, and a few others here) you may or may not have experienced this "bug". If you're running you're Nuke site on a WinNT platform (WinNT, Win2k, WinXP) then you may have come across this "bug": On your homepage, the news articles display the date but not the time when they were posted. Instead they may display the timezone (Central Daylight Time, etc) or something else.
To have your news articles display both the date AND the time when they were posted do the following:

Step 1 - Go to the directory on the computer where your Nuke site resides.

Step 2 - Go to the language folder and select the language-xxxx.php file (where -xxxx is your native language, i.e. I would select language-english.php)

Step 3 - Right-click this file and select Edit. This should bring up this file in Notepad.

Step 4 - Click on Edit then select Find. Enter this into the searchbox (without quotes): "define("_DATESTRING","%A, %B %d @ %T %Z");" and click Find next.

Step 5 - Replace that piece of code with this (without quotes): "define("_DATESTRING","%A, %B %d @ %I:%M%p %Z");". Then click on File and Save. Once saved close the document.

Now, every news article posted will include the date AND the time when it was posted. :)

XtremePcCentral used to be plagued by this "bug", but as you can see all of our news articles include the date AND time when they were posted. :)