Skip to content
Snippets Groups Projects
Commit 38825abe authored by Bhabesh Bhabani Mukhopadhyay's avatar Bhabesh Bhabani Mukhopadhyay
Browse files

Default Date (today's date) for Observation date (suggested by : Berit)

parent 773fc517
No related branches found
No related tags found
No related merge requests found
,wildfly,bhabesh-HP-NIBIO-Ubuntu.hitronhub.home,02.08.2021 18:01,file:///home/wildfly/.config/libreoffice/4;
\ No newline at end of file
,wildfly,bhabesh-HP-NIBIO-Ubuntu.hitronhub.home,02.08.2021 18:26,file:///home/wildfly/.config/libreoffice/4;
\ No newline at end of file
No preview for this file type
......@@ -798,18 +798,25 @@ export default {
btnBack.style.top=(navDiv.offsetHeight) + "px";
btnBack.style.left=0+"px";
//minObservationDate
var dtToday = new Date();
var month = dtToday.getMonth() + 1;
var day = dtToday.getDate();
var year = dtToday.getFullYear();
var hh = dtToday.getHours();
var min = dtToday.getMinutes();
if(month < 10)
month = '0' + month.toString();
if(day < 10)
day = '0' + day.toString();
if(hh<10)
hh = '0' + hh.toString();
if(min<10)
min = '0' + min.toString();
var maxDate = year + '-' + month + '-' + day;
var minDate = year + '-' + '01' + '-' + '01';
......@@ -817,7 +824,7 @@ export default {
this.maxObservationDate = maxDate+'T00:00';
this.minObservationDate = minDate+'T00:00';
this.strDateObservation = maxDate+'T'+hh+':'+min;
if(this.paramObservation)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment