• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Change time display to spanish on ZnoteAAC

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
1,557
Solutions
28
Reaction score
881
Location
Santiago - Chile
GitHub
ralke23
Twitch
ralke23
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:
1714180141256.png

"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!

1714182726912.png
 
Last edited:
Back
Top