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
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Nov 13, 2015

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Feb 16, 2016

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Feb 17, 2016

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Feb 22, 2016

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Feb 22, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.