d65445ce6c2d6ea3742bdb48b569699486eb0bbd — William Casarin 2 months ago
anything rendering related should probably be localtime...
1 files changed, 2 insertions(+), 2 deletions(-)

M viscal.c
M viscal.c => viscal.c +2 -2
@@ 174,7 174,7 @@ struct tm nowtm;
  
  	now = time(NULL);
- 	nowtm = *gmtime(&now);
+ 	nowtm = *localtime(&now);
  	nowtm.tm_min = 0;
  	nowh = mktime(&nowtm);
  	nowtm.tm_hour = 0;


@@ 666,7 666,7 @@   static time_t closest_timeblock_for_timet(time_t st, int timeblock_size) {
  	struct tm lt;
- 	lt = *gmtime(&st);
+ 	lt = *localtime(&st);
  	lt.tm_min = round(lt.tm_min / timeblock_size) * timeblock_size;
  	lt.tm_sec = 0; // removes jitter
  	return mktime(&lt);