Skip to content

Commit

Permalink
date time and lat/long format
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayPrabhakaran committed Dec 8, 2023
1 parent 11b8c66 commit 5408aa0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SJPv6/www/sjp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1311,10 +1311,10 @@ function doForm(){//Checked
panchanga=getPanchanga(d,lon,lat);
s = "\n<p><b>Panchanga and Chart for </b> <br/>"+
"&emsp;Name: <b>"+params["chartname"]+"</b><br/>"+
"&emsp;Date dd/mm/yyyy: <b>"+params["day"]+"/"+params["month"]+"/"+params["year"]+"</b><br/>"+
"&emsp;Time: <b>"+params["hours"]+":"+params["mins"]+":"+params["secs"]+"</b><br/>"+
"&emsp;Longitude: <b>"+parseFloat(params["longitude"]).toFixed(4)+"</b><br/>"+
"&emsp;Latitude: <b>"+parseFloat(params["latitude"]).toFixed(4)+"</b><br/>"+
"&emsp;DateTime dd/mm/yyyy: <b>"+params["day"]+"/"+params["month"]+"/"+params["year"]+" "+params["hours"]+":"+("0"+params["mins"]).slice(-2)+":"+("0"+params["secs"]).slice(-2)+"</b><br/>"+
//"&emsp;Time: <b>"+params["hours"]+":"+("0"+params["mins"]).slice(-2)+":"+("0"+params["secs"]).slice(-2)+"</b><br/>"+
"&emsp;Latitude, Longitude: <b>"+parseFloat(params["latitude"]).toFixed(6)+","+parseFloat(-1*params["longitude"]).toFixed(6)+"</b><br/>"+
//"&emsp;Latitude: <b>"+"</b><br/>"+
"&emsp;Timezone: <b>"+params["timezone"]+"</b><br/>"+
panchanga.html;
var editlink = "<a href="+window.location.href.replace("&submit=Calculate","")+"><strong>Change the Data</strong></a>";
Expand Down

0 comments on commit 5408aa0

Please sign in to comment.