Jump to content

Problem with date() function and language


Recommended Posts

I have a php file that use a date() function to show a date on my store home.

This is a part of my file:

I have a php file that use a date() function to show a date on my store home.

		foreach($res_csv as &$row)
		{
			$values = str_getcsv($row, ",");
			if (count($values) >= 3)
			$rows[] = array(
				'time' => date("d F Y", $values[0]),
				'id' => $values[1],
				'rating' => $values[2],
				'review' => $values[3],
			);
		}

The capital F should show the complete name of the month, the problem it's that is showed in English but my store it's set only in Italian language.

 

Shouldn't use automatically the language of my store?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...