- Enable Edit Event into dialog form ... (and save to the db)
- Add Where table
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { UserStore } from '@store'
|
||||
import { date } from 'quasar'
|
||||
|
||||
export const toolsext = {
|
||||
getLocale(vero?: boolean) {
|
||||
@@ -34,12 +35,23 @@ export const func_tools = {
|
||||
// timeZone: 'UTC'
|
||||
})
|
||||
if (DateFormatter) {
|
||||
const date = new Date(mydate)
|
||||
return DateFormatter.format(date)
|
||||
const date1 = new Date(mydate)
|
||||
return DateFormatter.format(date1)
|
||||
}
|
||||
return mydate
|
||||
},
|
||||
|
||||
hasManyDays(mydatestart, mydateend) {
|
||||
if (mydateend)
|
||||
return this.getDateStr(mydatestart) !== this.getDateStr(mydateend)
|
||||
else
|
||||
return false
|
||||
},
|
||||
|
||||
getMinutesDuration(mydatestart, mydateend) {
|
||||
return date.getDateDiff(mydateend, mydatestart, 'minutes')
|
||||
},
|
||||
|
||||
getDateTimeShortStr(mydate) {
|
||||
const DateFormatter = new Intl.DateTimeFormat(func_tools.getLocale() || void 0, {
|
||||
hour: 'numeric',
|
||||
|
||||
Reference in New Issue
Block a user