Skip to content

Commit

Permalink
save jhd the timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayPrabhakaran committed Sep 22, 2023
1 parent 0ad2688 commit a4641fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SJPv6/www/sjp.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ function getJHDStringEsc( parray){
+d.getDate()+'\r\n' //Line2:DATE
+d.getFullYear()+'\r\n' //Line3:YEAR (digit)
+(d.getHours()*1+d.getMinutes()/100+d.getSeconds()/10000).toFixed(6)+'\r\n' //HH.MMmmmmmm(where Hours.MMmmmm mm is decimals of minutes after .)
+(-parray['timezone'])+'\r\n' //Line5:-HH.MMmmmmmm(TimeZone -ve is east Hours.MMmmmm)
+(-parseInt(parray['timezone']))+"."+parray['timezone']%1*60+'\r\n' //Line5:-HH.MMmmmmmm(TimeZone -ve is east Hours.MMmmmm)
+parray['longitude']+'\r\n' //Line6:-DD.MMmmmm (Longitudes -ve is east Degrees.MMmmmm)
+parray['latitude']+'\r\n' //Line7:DD.MMmmmm (Latitude Degrees.MMmmmm)
+"00.000"+"\n" //Altitude //Line8:MM.mmmmmm (Altitude meters)
Expand Down Expand Up @@ -1313,11 +1313,11 @@ function doForm(){//Checked
var editlink = "<a href="+window.location.href.replace("&submit=Calculate","")+"><strong>Change the Data</strong></a>";
document.write("<HTML><HEAD>"
+"<meta http-equiv='content-type' content='text/html; charset=utf-8' />"
+"<TITLE> तज"+params["chartname"]+" - Sri Jagannatha Panchanga - JavaScript</TITLE></HEAD><BODY>"
+"<TITLE>"+params["chartname"]+" - Sri Jagannatha Panchanga - JavaScript</TITLE></HEAD><BODY>"
+""
+ editlink +s +editlink +"</body></html>");
document.title = params["chartname"]+"-"+document.title;
window.status="Computed Panchanga";
// window.status="Computed Panchanga";
document.close();
}
function setLatLong(){
Expand Down

0 comments on commit a4641fd

Please sign in to comment.