Skip to content

Commit

Permalink
Date
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayPrabhakaran committed Jun 25, 2024
1 parent d614ccf commit 48ce0b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SJPv6/www/sjp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,8 @@ function init(){
document.getElementById("timezone").value = params['chartname']===undefined?-1*today.getTimezoneOffset()/60:params['timezone'];
//Time zone needs to be set before format times
TimeZoneOffset = parseFloat(document.getElementById("timezone").value);
if(params["day"]!==undefined) b_date= new Date(params["year"],params["month"]-2,params["day"]);
b_date=new Date();
if(params["day"]!==undefined) b_date= new Date(params["year"],params["month"]-2,params["day"]);
document.getElementById("day").value=b_date.getDate();
document.getElementById("month").value=b_date.getMonth()+1;
document.getElementById("year").value=b_date.getFullYear();
Expand Down

0 comments on commit 48ce0b8

Please sign in to comment.