mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
11 lines
334 B
TypeScript
11 lines
334 B
TypeScript
import path from 'path';
|
|
import moment from 'moment';
|
|
|
|
global.__root_dir = path.join(__dirname, '..');
|
|
global.__resources_dir = path.join(global.__root, 'resources');
|
|
global.__locales_dir = path.join(global.__resources_dir, 'locales');
|
|
|
|
moment.prototype.toMySqlDateTime = function () {
|
|
return this.format('YYYY-MM-DD HH:mm:ss');
|
|
};
|