webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit ba11f9908cd7036313ce4750b7c488ea68f68a1f
parent d19b4a6053df92f1a7e7428bcb5e4b85ab3fe954
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 12:44:19 -0700

Fix bug in julian date computation

Diffstat:
Msun.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sun.js b/sun.js @@ -95,7 +95,7 @@ function Sun() { this.cal_to_jd = function(date) { var yr = date.getUTCFullYear(); var mo = date.getUTCMonth() + 1; // WTF??? - var day = date.getUTCDate() + date.getUTCHours() / 12.0 + var day = date.getUTCDate() + date.getUTCHours() / 24.0 + date.getUTCMinutes() / 1440.0 + date.getUTCSeconds() / 86400.0; if (mo <= 2) {