Skip to content

Commit

Permalink
Start next day message on dusk
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Jan 11, 2017
1 parent e11a4f7 commit 3c4a420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Message.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct Message {
init(sunPhase: SunPhase, yesterdayDaylightLength: Double, todayDaylightLength: Double, tomorrowDaylightLength: Double) {
var kindRawValue = 0

if sunPhase == .night {
if sunPhase == .night || sunPhase == .dusk {
let tomorrowIsLonger = tomorrowDaylightLength - todayDaylightLength > 0
if tomorrowIsLonger {
let longerTomorrowMoreThanAMinute = tomorrowDaylightLength - todayDaylightLength > 60
Expand Down

0 comments on commit 3c4a420

Please sign in to comment.