Giter Site home page Giter Site logo

date-menu-formatter's People

Contributors

andyholmes avatar bomdia avatar marcinjakubowski avatar pengshao avatar toolstack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

date-menu-formatter's Issues

Date is wrong by one day

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

Screenshot from 2023-11-23 20-02-23

Screenshot from 2023-11-23 20-04-38
Screenshot from 2023-11-23 20-07-11

EDIT: typo.

BUG: Pattern takes over a minute to apply

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)

System time zone change doesn't show in menu bar unless extension disabled/re-enabled

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!

Please add a way to either do math, or support for Eras

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

update for gnome 43

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 freezing

Time sometimes freezes and you need to turn off and turn of the extension

Ubuntu 22.04.2 LTS

Moving reformatted clock replaces part with ...

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?

"Available pattern components" guide issues

A couple issues, at least, with "Available pattern components" guide.

Luxon:

  • guide indicates that 'w' and 'ww' are 'week of year' and 'week of year (padded)', but they just render as 'w' and 'ww'.
  • guide suggests E, 'weekday (numeric)', has a range of 1-6. That should either be 0-6, or 1-7.

Luxon Bildschirmfoto vom 2023-12-20 16-47-24

SimpleDateFormatter:

  • guide says 'W' should render as 'week of month', but renders as '?'

SimpleDateFormat Bildschirmfoto vom 2023-12-20 16-47-10

Possible to Get "2023-10-01 12:42 UTC" E.g.?

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.

[REWORK][FEAUTURES] Migrate to Typescript for better maintenability and some other improvment

@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 ?)

Syntax Error?

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

Week of year shows 0

My string is EEE, MMM.d.y - 'KW:' ww - kk:mm:ss and it shows
image

No change if I only put a single w

When I put W I get ?

I am expecting w and ww to render as 1 and 01 for the first week in europe.

tt

I was wrong using "H" instead of "k".
Thanks for your efforts on this useful extension.

Regards,

1-12 am is actually 0-11

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!

Possible to Show Custom Format Before Login on Top Bar?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.