Skip to content
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

[dev.icinga.com #10625] Return local date and time when lost connection to the web server #2135

Closed
icinga-migration opened this issue Nov 13, 2015 · 4 comments
Labels
area/ui Affects the user interface bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10625

Created by mzac on 2015-11-13 17:54:26 +00:00

Assignee: aklimov
Status: Resolved (closed on 2016-02-22 10:30:03 +00:00)
Target Version: 2.2.0
Last Update: 2016-02-22 10:30:03 +00:00 (in Redmine)


The red bar at the bottom of the screen shows when the browser has lost connection to the web server, however it only shows the local time and doesn't show the date.

My fix:

public/js/icinga/utils.js starting line 48

        localeDate: function (now) {
            if (typeof now === 'undefined') {
                now = new Date();
            }

            return now.toLocaleDateString()
        },

public/js/icinga/loader.js starting at line 681

                            'The connection to the Icinga web server was lost on ' +
                            this.icinga.utils.localeDate() +
                            ' at ' +
                            this.icinga.utils.timeShort() +
                            '.',
                            true

Changesets

2016-02-17 15:31:16 +00:00 by aklimov d032c47

JS: implement Icinga.Utils.prototype.dateTimeISO()

refs #10625

2016-02-17 15:33:14 +00:00 by aklimov 4f9f4f1

Display date and time when a connection was lost

refs #10625

2016-02-22 10:14:41 +00:00 by aklimov c4a6919

JS: implement Icinga.Utils.padString()

refs #10625

2016-02-22 10:24:19 +00:00 by aklimov a2a96be

Display ISO date and time when a connection was lost

refs #10625

2016-02-22 10:27:01 +00:00 by aklimov eae7a58

Merge branch 'bugfix/print-iso-date-time-when-lost-connection-10625'

fixes #10625
@icinga-migration
Copy link
Author

Updated by elippmann on 2016-02-16 15:43:31 +00:00

  • Subject changed from Return local date when lost connection to icinga web server to Return local date and time when lost connection to the web server
  • Category set to UI
  • Target Version set to 2.2.0

Hi,

Thanks for the report. We'll add this to our next release.

Best,
Eric

@icinga-migration
Copy link
Author

Updated by aklimov on 2016-02-17 15:35:28 +00:00

  • Status changed from New to Feedback
  • Assigned to set to elippmann

@icinga-migration
Copy link
Author

Updated by aklimov on 2016-02-22 10:28:32 +00:00

  • Status changed from Feedback to Assigned
  • Assigned to changed from elippmann to aklimov

@icinga-migration
Copy link
Author

Updated by aklimov on 2016-02-22 10:30:03 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset eae7a58.

@icinga-migration icinga-migration added bug Something isn't working area/ui Affects the user interface labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.2.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Affects the user interface bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant