janrg / MeeusSunMoon

JavaScript module to calculate times for sunrise, solar noon, and sunset, as well as moon phases based on "Astronomical Algorithms" by Jean Meeus
MIT License
31 stars 9 forks source link

error #9

Closed PitWiener closed 5 years ago

PitWiener commented 5 years ago

Hi! Thanks for MeeusSunMoon but I get an error: 1st I declare

    <script type='text/javascript' src='moment-with-locales.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='moment-timezone-with-data.min.js' charset='utf-8'></script>
    <script src="dist/meeussunmoon.min.js"></script>

but when I start my test app I get the error: TypeError: r.tz is not a function | meeussunmoon.min.js:7:11538 What's wrong? Thanks Pit

janrg commented 5 years ago

Hi, could you share a code-snippet of how you're using the library? Also could you try with the non-minified version in order to get a useful line number in the error output?

PitWiener commented 5 years ago

Thanks for your fast response. I solved the problem: I had a wrong date conversion. :-{ Thanks Pit

janrg commented 5 years ago

Glad you got it solved :-)