mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
add server to monorepo.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import moment from 'moment-timezone';
|
||||
import { Service } from 'typedi';
|
||||
import { DATE_FORMATS } from './constants';
|
||||
|
||||
@Service()
|
||||
export default class DateFormatsService {
|
||||
getDateFormats() {
|
||||
return DATE_FORMATS.map((dateFormat) => {
|
||||
return {
|
||||
label: `${moment().format(dateFormat)} [${dateFormat}]`,
|
||||
key: dateFormat,
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user