How to show city title above clock display in default clock module?
-
Replace the Day and Date with the City Title { “New-York”, }
modules: [ { module: "clock", position: "top_left", // This can be any of the regions. config: { // The config property is optional. // See 'Configuration options' for more information. }, }, ];
-
@kpl4184 in the config section where module:
module:,"clock", header:"....... string"
-
@kpl4184 - You can specify a custom date format with anything you like.
{ module: "clock", position: "top_left", // This can be any of the regions. config: { dateFormat: "[New York City]", showDate: true } }
-
I did it with both date and city.
{
module: “clock”,
position: “top_left”, // This can be any of the regions.
config: {
dateFormat: “dddd, LL [at New York City]”,
showDate: true
}
}