Skip to content

Commit

Permalink
Merge pull request #5 from schrockwell/master
Browse files Browse the repository at this point in the history
Fixing bug with Time.to_s
  • Loading branch information
mikereedell committed Dec 29, 2014
2 parents 1b11c01 + 162bdba commit efc73c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/solareventcalculator.rb
Expand Up @@ -118,7 +118,7 @@ def compute_utc_solar_event(zenith, isSunrise)
sunLocalHour = compute_local_hour_angle(cosineSunLocalHour, isSunrise)
localMeanTime = compute_local_mean_time(sunTrueLong, longHour, eventLongHour, sunLocalHour)

timeParts = localMeanTime.to_s('F').split('.')
timeParts = localMeanTime.to_f.to_s.split('.')
mins = BigDecimal.new("." + timeParts[1]) * BigDecimal.new("60")
mins = mins.truncate()
mins = pad_minutes(mins.to_i)
Expand Down
2 changes: 1 addition & 1 deletion rubysunrise.gemspec
@@ -1,6 +1,6 @@
spec = Gem::Specification.new do | s |
s.name = "RubySunrise"
s.version = "0.3"
s.version = "0.3.1"
s.author = "Mike Reedell / LuckyCatLabs"
s.email = "mike@reedell.com"
s.homepage = "http://www.mikereedell.com"
Expand Down

0 comments on commit efc73c0

Please sign in to comment.