Skip to content
Snippets Groups Projects
Commit 510fee8b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Revert back to using system.datestr() for preferred short date display output

Stripped trailing whitespace
parent 0cdae92f
Branches
Tags
No related merge requests found
...@@ -394,11 +394,6 @@ function get_winners(level) ...@@ -394,11 +394,6 @@ function get_winners(level)
return list; return list;
} }
function datestr(t)
{
return strftime("%b%m-%y", t);
}
function show_winners(level) function show_winners(level)
{ {
console.clear(); console.clear();
...@@ -445,7 +440,7 @@ function show_winners(level) ...@@ -445,7 +440,7 @@ function show_winners(level)
,game.width ,game.width
,game.height ,game.height
,game.mines ,game.mines
,datestr(game.end) ,system.datestr(game.end)
)); ));
count++; count++;
displayed++; displayed++;
...@@ -491,7 +486,7 @@ function show_log() ...@@ -491,7 +486,7 @@ function show_log()
else else
console.attributes = BG_CYAN; console.attributes = BG_CYAN;
console.print(format("%s %-25s %1.2f %s %3ux%2ux%-3u %3s %s\x01>\x01n\r\n" console.print(format("%s %-25s %1.2f %s %3ux%2ux%-3u %3s %s\x01>\x01n\r\n"
,datestr(game.end) ,system.datestr(game.end)
,game.name ,game.name
,calc_difficulty(game) ,calc_difficulty(game)
,secondstr(calc_time(game), true) ,secondstr(calc_time(game), true)
...@@ -527,7 +522,7 @@ function show_best() ...@@ -527,7 +522,7 @@ function show_best()
else else
console.attributes = BG_CYAN; console.attributes = BG_CYAN;
console.print(format("%s %1.2f %s %3ux%2ux%-3u %s\x01>\x01n\r\n" console.print(format("%s %1.2f %s %3ux%2ux%-3u %s\x01>\x01n\r\n"
,datestr(game.end) ,system.datestr(game.end)
,calc_difficulty(game) ,calc_difficulty(game)
,secondstr(calc_time(game), true) ,secondstr(calc_time(game), true)
,game.width, game.height, game.mines ,game.width, game.height, game.mines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment