Comments (7)
Sent a first pull request to you @danieljrmay regarding month format at danieljrmay#1
from datetime-format.
Sent a second pull request to you @danieljrmay regarding %z functionality danieljrmay#2. It is quick and dirty, not sure if you have any better idea on how to solve that issue properly.
I have pushed both of my changes into https://github.com/christofferholmstedt/datetime-format/tree/master
--- EDIT ---
As reference https://stackoverflow.com/a/15304657
from datetime-format.
I cloned your changes from https://github.com/danieljrmay/datetime-format , the release branch and it solved my problem for loading the extension settings page that didn't work at all on my new Ubuntu 18.10 installation (see #12).
Though I'm now experiencing some issues with the format I use: %Y-%m-%dT%H:%M:%S%z
- Month is not properly displayed ("00" instead of "01" for January)
- Timezone does not work anymore. %z is printed instead of the proper timezone.
Any ideas what this could be caused by?
--- EDIT ---
Just took a look at the source code and more specifically the changes at danieljrmay@ab34e68#diff-3536874582afc79fb041cab92d9d46dbR15 %z does not seem to be implemented and "m" might be parsed wrong. Will take a closer look.
from datetime-format.
Hi Christoffer!
Sorry not to get back to you sooner, been a bit busy over the last few days. However, I wanted to acknowledge all your comments and contributions! I will have a chance to have a proper look at everything later this week and I will give you a proper response then. ;-)
Best wishes, Dan
from datetime-format.
Is this extension dead since there's still no update/reply 3 months later? That's a shame because I really like and use it in all my fresh installation of Ubuntu 18.04.2. It crashes in the latest 19.04 (gnome 3.32)
from datetime-format.
Hi @sudoranger
Is this extension dead since there's still no update/reply 3 months later? That's a shame because I really like and use it in all my fresh installation of Ubuntu 18.04.2. It crashes in the latest 19.04 (gnome 3.32)
I haven't had a response from @Daniel-Khodabakhsh the original author of this great little extension since I posted this issue. I forked the repository and have fixed the issue which prevented it running in my Fedora 29. @christofferholmstedt also added a couple of fixes to this fork and I think he had it running in a recent Ubuntu, not sure which version. You could give the fork a go and see if it works for you:
https://github.com/danieljrmay/datetime-format
from datetime-format.
Installed today via https://extensions.gnome.org/extension/1173/datetime-format/ on GNOME Shell 3.32.2 on Fedora 30 and got:
The settings of extension [email protected] had an error:
TypeError: (new Date(...)).toLocaleFormat is not a function
Stack trace:
dateTimeFormat@/home/lorenz/.local/share/gnome-shell/extensions/[email protected]/Utilities.js:15:85
updatePreview@/home/lorenz/.local/share/gnome-shell/extensions/[email protected]/FormatTarget.js:49:25
create@/home/lorenz/.local/share/gnome-shell/extensions/[email protected]/FormatTarget.js:55:2
buildPrefsWidget/<@/home/lorenz/.local/share/gnome-shell/extensions/[email protected]/prefs.js:136:61
buildPrefsWidget@/home/lorenz/.local/share/gnome-shell/extensions/[email protected]/prefs.js:136:2
_selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:75:22
_onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:320:17
main@resource:///org/gnome/shell/extensionPrefs/main.js:635:5
@<main>:1:43
from datetime-format.
Related Issues (20)
- Can't install HOT 4
- %p isn't working in the status bar
- Extension not handling time/date codes correctly
- Error when loading Preferences dialog. HOT 1
- Broken in Ubuntu 19.04: TypeError: (new Date(...)).toLocaleFormat is not a function HOT 1
- Broken in pop!_os 19.04, "The settings for this extension can't be displayed", TypeError: (new Date(...)).toLocaleFormat is not a function HOT 2
- Error after clicking "Extension Settings" for the addon in Ubuntu Software HOT 4
- Extension Settings "Something's gone wrong", fresh Ubuntu 19.10 install HOT 1
- TypeError: extension.metadata.formatTargets is undefined HOT 2
- Broken on Pop!_OS 20.04: extension.metadata.formatTargets is undefined HOT 2
- Error: Failed to convert locale string to UTF8 HOT 1
- How do I apply extension.json for Gnome 40?
- Something's gone wrong HOT 1
- Gnome 42.4 HOT 1
- Don't display seconds on Status Bar? HOT 1
- Restart not working HOT 1
- Cannot find gsettings schema as described in readme
- Extension not enabled after installation in Ubuntu 18.04
- Gnome 3.18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datetime-format.