4
I’m working on a CMS for display of the articles, my problem is with the function strtotime() does not indicate the correct date, always indicates 1 March 1970. The Row (phpMyAdmin) of one of article_timestamp is given with the format: ex. 1394220287. What I’m doing wrong?
<span id="date">Publicado
<?php
setlocale(LC_ALL, NULL);
date_default_timezone_set('Europe/Lisbon');
$timeStamp = $article['article_timestamp'];
$uppercaseMonth = ucfirst(gmstrftime('%B'));
echo strftime( '%A, %d de ' .$uppercaseMonth. ' de %Y', strtotime($timeStamp));
?></span>
Miguel, can you add to the question an example of one of your
timestamp(s)? one of the values you have in the comic book– Sergio
I’ve done the update, thank you
– Miguel