c70f2d3164
Fixes PR pkg/28335.
22 lines
896 B
Text
22 lines
896 B
Text
$NetBSD: patch-ab,v 1.6 2004/12/08 10:34:53 markd Exp $
|
|
|
|
--- kstars/kstars/timezonerule.cpp.orig 2004-12-07 23:55:20.000000000 +1300
|
|
+++ kstars/kstars/timezonerule.cpp
|
|
@@ -228,7 +228,7 @@ void TimeZoneRule::nextDSTChange_LTime(
|
|
KStarsDateTime result;
|
|
|
|
// return a very remote date if the rule is the empty rule.
|
|
- if ( isEmptyRule() ) result = KStarsDateTime( INVALID_DAY );
|
|
+ if ( isEmptyRule() ) result = KStarsDateTime( (long) INVALID_DAY );
|
|
|
|
else if ( deltaTZ() ) {
|
|
// Next change is reverting back to standard time.
|
|
@@ -262,7 +262,7 @@ void TimeZoneRule::previousDSTChange_LTi
|
|
KStarsDateTime result;
|
|
|
|
// return a very remote date if the rule is the empty rule
|
|
- if ( isEmptyRule() ) next_change_ltime = KStarsDateTime( INVALID_DAY );
|
|
+ if ( isEmptyRule() ) next_change_ltime = KStarsDateTime( (long) INVALID_DAY );
|
|
|
|
if ( deltaTZ() ) {
|
|
// Last change was starting DST.
|