-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken in Fedora 29 due to removal of Date.toLocaleFormat() #13
Comments
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
Any ideas what this could be caused by? --- EDIT --- |
Sent a first pull request to you @danieljrmay regarding month format at danieljrmay#1 |
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 --- |
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 |
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) |
Hi @sudoranger
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: |
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 datetime-format@Daniel-Khodabakhsh.github.com had an error:
Stack trace:
|
First of all thank you so much for this excellent extension. I really like it as I can't remember what year it is these days!
Unfortunately the removal of
Date.toLocaleFormat()
— which is used in theUtilities.dateTimeFormat(format, defaultFormat)
function— has broken this extension.See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat
I have forked your project and created a partial fix by essentially doing a limited re-implementation of
Date.toLocaleFormat()
. You can see my efforts at:https://github.com/danieljrmay/datetime-format
The changes are to
Utilities.dateTimeFormat(format, defaultFormat)
and a new fileDateTimeFormatter.js
which contains my limited re-implementation ofDate.toLocaleFormat()
.Although this does get the extension working, there are still a number of things which would have to be done before we get it production ready including:
DateTimeFormatter.js
.How would you like to proceed? I could issue a pull-request for what I have done so far, or I could carry on trying to get a "production ready" version before issuing the pull request. Or perhaps you have a different view on how this should all be done?
Thank you again for all your work on this.
Best wishes,
Dan
The text was updated successfully, but these errors were encountered: