Commit c2caffe2 authored by Michael Liang's avatar Michael Liang

le-interface: fix bug format date

Signed-off-by: default avatarMichael Liang <ml09@c3sl.ufpr.br>
parent e63fe647
......@@ -184,29 +184,38 @@ const DateMenuButton = new Lang.Class({
if (showDate)
/* Translators: This is the time format with date used
in 24-hour mode. */
clockFormat = showSeconds ? _("%a %b %e, %R:%S")
: _("%a %b %e, %R");
// clockFormat = showSeconds ? _("%a %b %e, %R:%S")
// : _("%a %b %e, %R");
clockFormat = showSeconds ? _("%A %B %e, %R:%S")
: _("%e/%m/%Y %R");
//: _("%A, %e %B %Y\n %R");
else
/* Translators: This is the time format without date used
in 24-hour mode. */
clockFormat = showSeconds ? _("%a %R:%S")
: _("%a %R");
// clockFormat = showSeconds ? _("%a %R:%S")
// : _("%a %R");
clockFormat = showSeconds ? _("%A %R:%S")
: _("%e/%m/%Y %R");
break;
case '12h':
default:
if (showDate)
/* Translators: This is a time format with date used
for AM/PM. */
clockFormat = showSeconds ? _("%a %b %e, %l:%M:%S %p")
: _("%a %b %e, %l:%M %p");
//clockFormat = showSeconds ? _("%a %b %e, %l:%M:%S %p")
// : _("%a %b %e, %l:%M %p");
clockFormat = showSeconds ? _("%A %B %e, %l:%M:%S %p")
: _("%e/%m/%Y %R");
else
/* Translators: This is a time format without date used
for AM/PM. */
clockFormat = showSeconds ? _("%a %l:%M:%S %p")
: _("%a %l:%M %p");
//clockFormat = showSeconds ? _("%a %l:%M:%S %p")
// : _("%a %l:%M %p");
clockFormat = showSeconds ? _("%A %l:%M:%S %p")
: _("%e/%m/%Y %R");
break;
}
let displayDate = new Date();
this._clock.set_text(displayDate.toLocaleFormat(clockFormat));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment