1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:07:43 +00:00

AnalogClock: Use YYYY-MM-DD format for window title

This commit is contained in:
Linus Groh 2021-05-14 20:17:09 +01:00
parent 212e1ba0d4
commit f512b24b21
3 changed files with 8 additions and 2 deletions

View file

@ -130,7 +130,7 @@ void AnalogClock::paint_event(GUI::PaintEvent& event)
void AnalogClock::update_title_date()
{
window()->set_title(Core::DateTime::now().to_string("Clock %d-%m-%Y"));
window()->set_title(Core::DateTime::now().to_string("%Y-%m-%d"));
}
void AnalogClock::context_menu_event(GUI::ContextMenuEvent& event)

View file

@ -34,7 +34,7 @@ int main(int argc, char** argv)
auto app_icon = GUI::Icon::default_icon("app-analog-clock");
auto window = GUI::Window::construct();
window->set_title(Core::DateTime::now().to_string("Clock %d-%m-%Y"));
window->set_title(Core::DateTime::now().to_string("%Y-%m-%d"));
window->set_icon(app_icon.bitmap_for_size(16));
window->resize(170, 170);
window->set_resizable(false);

6
js.js Normal file
View file

@ -0,0 +1,6 @@
let r = BigInt(1);
for(let a=BigInt(2),b=2; b<500000; a++,b++)
r *= a;
console.log(r);