Welcome Guest, Not a member yet? Register   Sign In
Beginner Date Helper Question
#1

[eluser]seth.aldridge[/eluser]
Hi,

This is my first time in CI and I had an issue with the Date helper.

This is how my time is printing out:

Code:
2008-11-06 00:00:00

This is what I'm using for the Date Helper:

Code:
<?=mdate("%F %j",$row->Date)?>

This is what I get:

Code:
December 31

Does anyone know what I'm doing wrong?

I don't know much about the Date function so I'm not sure how to fix this issue. A little guidance would be much appreciated.

UPDATE: This is across the board no matter what the time is? Could this be something with my date helper php file or a global setting?

Example URL: http://www.boosthabitatcabarrus.org/

Update 2: This seems to be a global issue because even the PHP date() function returns the same date. The only time this happens is if I try to have it format the date with %F %j. If I remove that it displays the correct date...just not formatted.


Messages In This Thread
Beginner Date Helper Question - by El Forum - 10-06-2008, 04:40 PM
Beginner Date Helper Question - by El Forum - 10-07-2008, 12:06 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 05:37 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 06:27 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 06:34 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 06:34 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 01:28 PM
Beginner Date Helper Question - by El Forum - 10-08-2008, 02:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB