about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-04-11 21:45:46 +0200
committerLeah Neukirchen <leah@vuxu.org>2020-04-11 21:45:46 +0200
commit3f588477a208dd977e73b4317b07e8b7a69102f8 (patch)
tree942bf99b820eed67d45836e3cc0a7d28071af342
parent7db19e430c8d10a34f0f2db574e37d4c54299e20 (diff)
downloadwcal-3f588477a208dd977e73b4317b07e8b7a69102f8.tar.gz
wcal-3f588477a208dd977e73b4317b07e8b7a69102f8.tar.xz
wcal-3f588477a208dd977e73b4317b07e8b7a69102f8.zip
compute dst for initial date
-rw-r--r--wcal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wcal.c b/wcal.c
index 1435996..2f5e3bf 100644
--- a/wcal.c
+++ b/wcal.c
@@ -71,6 +71,7 @@ main(int argc, char *argv[])
 		case 'd': parse_isodate(optarg, tm); break;
 		}
 
+	tm->tm_isdst = -1;  /* compute it */
 	tm->tm_hour = 12;  /* avoid DST problems */
 	tm->tm_min = tm->tm_sec = 0;