Ensure that the query history date format in Desktop mode matches the format of the locale of the pgadmin server. #5495

Format the time based on pgadmin servers locale.
This commit is contained in:
Akshay Joshi
2022-11-24 10:48:05 +05:30
committed by GitHub
parent d2c3ab8844
commit 9d3654bd69
4 changed files with 34 additions and 9 deletions

View File

@@ -61,6 +61,9 @@ define('pgadmin.browser.utils',
/* GET Binary Path Browse config */
pgAdmin['enable_binary_path_browsing'] = '{{ current_app.config.get('ENABLE_BINARY_PATH_BROWSING') }}' == 'True';
/* GET the pgadmin server's locale */
pgAdmin['pgadmin_server_locale'] = '{{pgadmin_server_locale}}';
// Define list of nodes on which Query tool option doesn't appears
let unsupported_nodes = pgAdmin.unsupported_nodes = [
'server_group', 'server', 'coll-tablespace', 'tablespace',