{"action":"created","issue":{"url":"https://api.github.com/repos/linuxmint/Cinnamon/issues/4024","repository_url":"https://api.github.com/repos/linuxmint/Cinnamon","labels_url":"https://api.github.com/repos/linuxmint/Cinnamon/issues/4024/labels{/name}","comments_url":"https://api.github.com/repos/linuxmint/Cinnamon/issues/4024/comments","events_url":"https://api.github.com/repos/linuxmint/Cinnamon/issues/4024/events","html_url":"https://github.com/linuxmint/Cinnamon/issues/4024","id":66717748,"number":4024,"title":"Notifications fail with JS ERROR: RangeError: invalid language tag","user":{"login":"marcvinyals","id":2737446,"avatar_url":"https://avatars.githubusercontent.com/u/2737446?v=3","gravatar_id":"","url":"https://api.github.com/users/marcvinyals","html_url":"https://github.com/marcvinyals","followers_url":"https://api.github.com/users/marcvinyals/followers","following_url":"https://api.github.com/users/marcvinyals/following{/other_user}","gists_url":"https://api.github.com/users/marcvinyals/gists{/gist_id}","starred_url":"https://api.github.com/users/marcvinyals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcvinyals/subscriptions","organizations_url":"https://api.github.com/users/marcvinyals/orgs","repos_url":"https://api.github.com/users/marcvinyals/repos","events_url":"https://api.github.com/users/marcvinyals/events{/privacy}","received_events_url":"https://api.github.com/users/marcvinyals/received_events","type":"User","site_admin":false},"labels":[{"id":207546184,"url":"https://api.github.com/repos/linuxmint/Cinnamon/labels/BUG","name":"BUG","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-04-06T22:13:34Z","updated_at":"2016-11-27T16:18:24Z","closed_at":null,"body":"Cinnamon-2.4 has trouble processing Freedesktop notifications. When running e.g.\n\n```\nnotify-send \"meh\"\n```\n\nbut also if an application such as rhythmbox or pidgin is sending a notification, instead of the notification displaying I get the following error in ~/.xsession-errors:\n\n(cinnamon:28266): Cjs-WARNING **: JS ERROR: RangeError: invalid language tag: %l:%M %p\nNotification.prototype.update@/usr/share/cinnamon/js/ui/messageTray.js:590\nNotification.prototype._init@/usr/share/cinnamon/js/ui/messageTray.js:521\nNotification@/usr/share/cinnamon/js/ui/messageTray.js:422\nNotificationDaemon.prototype._notifyForSource@/usr/share/cinnamon/js/ui/notificationDaemon.js:401\nNotificationDaemon.prototype.NotifyAsync/<@/usr/share/cinnamon/js/ui/notificationDaemon.js:385\n_proxyInvoker/asyncCallback@resource:///org/gnome/gjs/modules/overrides/Gio.js:90\n\nCommenting out line 590 in /usr/share/cinnamon/js/ui/messageTray.js fixes the problem, and so does removing the argument to the call to toLocaleTimeString(). Note: this is currently line 591 in the master branch.\n\nIn fact, according to the spidermonkey documentation at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString, this function expects a locale, not a time format.\n\nThis may be related to the following cjs unit test failing in my system:\ntestToLocaleDateString\nfrom https://github.com/linuxmint/cjs/blob/master/installed-tests/js/testLocale.js\n\nI previously reported this issue at https://bugs.gentoo.org/show_bug.cgi?id=545772\n"},"comment":{"url":"https://api.github.com/repos/linuxmint/Cinnamon/issues/comments/263130977","html_url":"https://github.com/linuxmint/Cinnamon/issues/4024#issuecomment-263130977","issue_url":"https://api.github.com/repos/linuxmint/Cinnamon/issues/4024","id":263130977,"user":{"login":"marcvinyals","id":2737446,"avatar_url":"https://avatars.githubusercontent.com/u/2737446?v=3","gravatar_id":"","url":"https://api.github.com/users/marcvinyals","html_url":"https://github.com/marcvinyals","followers_url":"https://api.github.com/users/marcvinyals/followers","following_url":"https://api.github.com/users/marcvinyals/following{/other_user}","gists_url":"https://api.github.com/users/marcvinyals/gists{/gist_id}","starred_url":"https://api.github.com/users/marcvinyals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcvinyals/subscriptions","organizations_url":"https://api.github.com/users/marcvinyals/orgs","repos_url":"https://api.github.com/users/marcvinyals/repos","events_url":"https://api.github.com/users/marcvinyals/events{/privacy}","received_events_url":"https://api.github.com/users/marcvinyals/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T16:18:24Z","updated_at":"2016-11-27T16:18:24Z","body":"No longer an issue; this was fixed in #4673."}}
{"actor":{"display_login":"marcvinyals"}}