diff --git a/src/main/main.ts b/src/main/main.ts index da1119c9..56778f3b 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -127,8 +127,8 @@ app.on('ready', async () => { if (isWindows) mainWindow.show(); - // if (isDevelopment) - // mainWindow.webContents.openDevTools(); + if (isDevelopment && !isWindows)// Because on Windows you can open devtools from title-bar + mainWindow.webContents.openDevTools(); process.on('uncaughtException', error => { mainWindow.webContents.send('unhandled-exception', error); diff --git a/src/renderer/i18n/en-US.ts b/src/renderer/i18n/en-US.ts index 7910728c..66b0661a 100644 --- a/src/renderer/i18n/en-US.ts +++ b/src/renderer/i18n/en-US.ts @@ -332,7 +332,7 @@ export const enUS = { wrapLongLines: 'Wrap long lines', markdownSupported: 'Markdown supported', plantATree: 'Plant a Tree', - dataTabPageSize: 'DATA tab page size', + dataTabPageSize: 'Results per page', noOpenTabs: 'There are no open tabs, navigate on the left bar or:', restorePreviousSession: 'Restore previous session', closeTab: 'Close tab', diff --git a/src/renderer/libs/exportRows.ts b/src/renderer/libs/exportRows.ts index b9ba6dc4..d4cba891 100644 --- a/src/renderer/libs/exportRows.ts +++ b/src/renderer/libs/exportRows.ts @@ -1,6 +1,7 @@ import { ClientCode } from 'common/interfaces/antares'; import { jsonToSqlInsert } from 'common/libs/sqlUtils'; import * as json2php from 'json2php'; +import * as moment from 'moment'; export const exportRows = (args: { type: 'csv' | 'json'| 'sql' | 'php'; @@ -41,6 +42,7 @@ export const exportRows = (args: { for (const row of args.content) { csv.push(Object.values(row).map(col => { if (typeof col === 'string') return `${sd}${col}${sd}`; + if (col instanceof Date) return `${sd}${moment(col).format('YYYY-MM-DD HH:mm:ss')}${sd}`; if (col instanceof Buffer) return col.toString('base64'); if (col instanceof Uint8Array) return Buffer.from(col).toString('base64'); return col;