Date not Displayed date format
Posted by: jayson (---.static.virginm.net)
Date: January 22, 2014 05:15PM

Hi,
We have had a website made and this site uses php apache etc so i decided to install wamp
installed wamp 2.4
mysql 5.6.12
php 5.4.12
apache 2.4.4

we have an issue where our dates are not displayed at all, this is the code The dates are hardcoded in the source code of your version of the page, but when you look at the source code of the page hosted on our server, the date isn’t fully hardcoded. This issue is in the span class sections (<span class="date">ON 22 January, 2014</span> ) vs what we have (<span class="date">ON </span> ). This appears to be the problem with the missing dates, we tried editing the date using the CMS but it did not change anything. There may be an issue with the CMS updating info on the website.

do you know why the code would work on the linux server but not the windows server?

Options: ReplyQuote
Re: Date not Displayed date format
Posted by: stevenmartin99 (Moderator)
Date: January 22, 2014 06:20PM

It's not possible for the date to be hard coded so your looking in the wrong place. Go back one step from were ur looking

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Date not Displayed date format
Posted by: RiggsFolly (---.as13285.net)
Date: January 22, 2014 06:39PM

This scould be a timezone setting problem!



Look in the php.ini file for this section

[Date]
; Defines the default timezone used by the date functions
; [php.net]
date.timezone = "Europe/London"

Make sure you have set a valid date.timezone as PHP now insist on it for various date funtions to work correctly.

Valid timezones can be found here [php.net]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.