ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
Hi I wonder how to change the time display to spanish on ZnoteAAC? I was reading this Trying to display a date in Spanish (https://stackoverflow.com/questions/25718115/trying-to-display-a-date-in-spanish) it has some clues but I couldn't figure it. Before messing it, I prefer to ask. I would like to show, for example here:
"Abril" instead of "April".
I only saw a clock function at config.php
and some time related stuff at init.php
But I think there's more hidding somewhere.
Thanks in advance!
Solved for the moment. Switched d F Y (H:i) to d/m/Y (H:i) so now it shows in numeral format. But I still need to translate to spanish if it's
possible!
"Abril" instead of "April".
I only saw a clock function at config.php
PHP:
function getClock($time = false, $format = false, $adjust = true) {
if ($time === false) $time = time();
// Date string representation
$date = "d F Y (H:i)"; // 15 July 2013 (13:50)
if ($adjust) $adjust = (-5 * 3600); // Adjust to fit your timezone.
else $adjust = 0;
if ($format) return date($date, $time+$adjust);
else return $time+$adjust;
}
and some time related stuff at init.php
PHP:
$l_time = microtime();
$l_time = explode(' ', $l_time);
$l_time = $l_time[1] + $l_time[0];
$l_start = $l_time;
function elapsedTime($l_start = false, $l_time = false) {
if ($l_start === false) global $l_start;
if ($l_time === false) global $l_time;
$l_time = explode(' ', microtime());
$l_finish = $l_time[1] + $l_time[0];
return round(($l_finish - $l_start), 4);
}
$time = time();
But I think there's more hidding somewhere.
Thanks in advance!
Post automatically merged:
Solved for the moment. Switched d F Y (H:i) to d/m/Y (H:i) so now it shows in numeral format. But I still need to translate to spanish if it's
possible!
Last edited: