calender date and time

aliasgharjanali7 years ago

hi . how i can set date and time interval on conficure page to one day interval ? normaly the first time is 30 min less that mobile time . i want change that 30 min to 24 hoars . can tell me from which file i can change that ?

Anton Tananaev7 years ago

You can modify it in "ReportConfig.js" file.

aliasgharjanali7 years ago

hi
i change that line but dont see any change in cinfigure page .
i could change any thing else?

        items: [{
            xtype: 'datefield',
            reference: 'fromDateField',
            startDay: Traccar.Style.weekStartDay,
            format: Traccar.Style.dateFormat,
            value: new Date(new Date().getTime() - 600 * 60 * 1000)
        }, {
            xtype: 'customTimeField',
            reference: 'fromTimeField',
            value: new Date(new Date().getTime() - 600 * 60 * 1000)
        }]
Anton Tananaev7 years ago

Have you compiled web app after changing the code?

aliasgharjanali7 years ago

no i just stop/start traccar . how i can compile that in linux ?

Anton Tananaev7 years ago

Check "minify.sh" script.

aliasgharjanali7 years ago

./minify.sh: 3: cd: can't cd to ./opt/traccar/web
./minify.sh: 7: ./minify.sh: sencha: not found

you think where i mistake ?

Anton Tananaev7 years ago

Everywhere. Path is wrong and you don't have Sencha CMD and probably ExtJS is missing as well.