mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Change formatting. #181
This commit is contained in:
@@ -48,8 +48,9 @@ Module.register("clock",{
|
||||
secondsWrapper.className = "dimmed";
|
||||
|
||||
// Set content of wrappers.
|
||||
var format = (this.config.timeFormat === 24) ? "HH:mm" : "hh:mm a";
|
||||
dateWrapper.innerHTML = moment().format("dddd, LL");
|
||||
timeWrapper.innerHTML = moment().format((this.config.timeFormat === 24) ? "HH:mm" : ("hh:mm"));
|
||||
timeWrapper.innerHTML = moment().format(format);
|
||||
secondsWrapper.innerHTML = moment().format("ss");
|
||||
|
||||
// Combine wrappers.
|
||||
|
Reference in New Issue
Block a user