marcinjakubowski / date-menu-formatter Goto Github PK
View Code? Open in Web Editor NEWDate Menu Formatter GNOME Shell extension
License: GNU General Public License v2.0
Date Menu Formatter GNOME Shell extension
License: GNU General Public License v2.0
Currently from what I can find, there is only 7 and 07 as options for the day of the month. Which is fine until you want to have your date formatted like Saturday 07th of January 2023.
Given that this is based on unicode, it might be difficult. Idk I dont develop extensions.
Would love to see this added
Can you please make some combination of z
s produce the abbreviated local time zone (like "EDT")? The reference that the extension's settings links to mentions that that's the way to accomplish that.
Output of date on my system:
carbon:~ $ date
2023-11-23T20:00:45 CET
The widget shows "2023-11-24 20:00", even though it's the 23rd of November. See screenshot.
See the second screenshot for my widget settings.
See the third screenshot for a comparison between this app (in the top bar) and another date widget (on the background).
Thanks
EDIT: typo.
I have set a custom pattern ('Calendar') because I don't actually want a permanent clock but only one on demand. However, the pattern takes well over a minute to actually apply. This happens both when I change the pattern in the extension settings and when I log into my account.
OS: Ubuntu 24.04 LTS (Wayland)
When I change my system's time zone, the change does not reflect in the menu bar's clock unless I disable and re-enable this extension.
I assume this is from the system's time zone being fetched only during enable()
and _onSettingsChange()
, but I didn't dig into code to confirm.
Not a big deal now that I'm aware of the issue, but it would be handy to fix. Thanks!
I am trying to have the year shown to me using an era system (such as what Japan uses, or the republican era calendar used in Taiwan), however it seems that Unicode does not support this (or I did not understand how to set that up). Could you please consider adding support for math so something like $(currentYear - 1234)
could be done? Thank you
sir,
i would like to thank you for extension support that you have provided till now for gnome. but i have one request. please update the date menu formatter extension for gnome version 43 so that it can be used on fedora 37.
i would be glad if you could fulfill my request.
Time sometimes freezes and you need to turn off and turn of the extension
Ubuntu 22.04.2 LTS
When the locale is set to ja-JP, is it possible to not display "月" and "日" for month and day?
Running fresh install of Ubuntu 24. Changed the clock using your extension and now I want to move it to the right. When I do it shrinks and replaces the last part with three dots. I've tried two different extensions, Just Perfection and Frippery Move Clock and both do the same thing. Is there something I can change to fix this?
A couple issues, at least, with "Available pattern components" guide.
Luxon:
SimpleDateFormatter:
I don't know if you heard about the gnome 45 extension breakage; i have no idea if it is easy to do and if you have time for it but apparently now two branches are needed : one for G44 one for 45.
https://blogs.gnome.org/shell-dev/2023/09/02/extensions-in-gnome-45/
https://gjs.guide/extensions/upgrading/gnome-shell-45.html#extensionutils
If you have time to do it it would be much appreciate
this extension should have a tab in gnome-tweaks seriously, thank you for the work
I'm wondering how to get the above date and time format in the top bar as shown in the title of this issue?
My locale settings:
alexl@PD70PNP:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=sv_SE.UTF-8
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
alexl@PD70PNP:~$
My timezone/time standard is UTC.
When I use y-MM-dd kk:mm
I get 2023-10-01 12:42
and when using y-MM-dd kk:mm Z
I get 2023-10-01 12:42 10/1/2023, UTC
.
However if I set the field next to "Use default locale (en-US)" to "sv-SE" and keep y-MM-dd kk:mm Z
I get 2023-10-01 12:42 2023-10-01 UTC
which almost correct.
I don't want to rely on the 'text' - literal text
feature to just say 'UTC'
as this would be incorrect if I decide to change back to my local time zone which is CET/CEST.
@marcinjakubowski, @andyholmes, @pengshao, @toolstack
in my view we should migrate the codebase to typescript
https://gjs.guide/extensions/development/typescript.html
the pros would range from better code readability and code hinting and linting from the ability to automatize the building process and the ability of importing npm library without having to manually download and copy it with better version management (ex luxon library)
i can start the migration to ts but before i want your opinion
on another aspect we should migrate prefs to libadwaita like a lot of the extension out here (better graphics and support)
and maybe implementing some automated test
i don't know much on how to automatize the workflow
other than that i think the default format string we currently use is horrible and we should change it.
my current format is:
🗓️ EEE D 🕗 TT 🌐 ZZZZ Z
🗓️ sab 30/3/2024 🕗 19:10:39 🌐 CET +1
and i very would like to have the ability to use this extension on the lockscreen and loginscreen but from what i've seen the lockscreen should be easy, but the loginscreen is dependant on another user (gdm) and so we should somehow overwrite the gdm dconf setting from the current user (pkexec ?)
The settings of extension [email protected] had an error:
SyntaxError: import declarations may only appear at top level of a module
Stack trace:
@file:///home/yuwannaknow/.local/share/gnome-shell/extensions/[email protected]/prefs.js:26:24
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
If I change my locale to ar-SA only the minutes dont show up. I have tried m
mm
still the same.
thank you so much for your work and project.
https://imgur.com/a/Gl6RYGc
When I use this Extension the font size become very small
Hi, would you like to add localization suppor for date-menu-formatter?
Thanks.
It's a very small, non-essential feature request, but being able to have am/pm denoted by 'a' and AM/PM denoted by 'A' would be nice.
I was wrong using "H" instead of "k".
Thanks for your efforts on this useful extension.
Regards,
The pattern "H : mm" turn "0:xx" into "24:xx". I assume this was broken in PR#3 which made it work for AM/PM based formats.
For formatting timezones, these variants show as undefined: z v V
.
The extension I used to use is no longer maintained. Could you look into adding internet time/Swatch beats?
Currently the midnight hour here in the U.S., almost 1 o'clock, and this otherwise excellent extension is displaying the time as 0:59. Code is h:mm. h is listed as -hour (1-12).
So this time shouldn't be 0:59, it should be 12:59. Nobody using a 12 hour clock ever uses 0 as a time. It's 12 midnight and 12 noon.
Thanks for the awesome extension!
When I wake up my laptop from suspension the top bar date and time isn't what I've set in the plug-in.
When I have logged in then it's as I've set in the plug-in.
Can it be configured so that the top bar shows the custom format before login?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.