fix: timezone issue
This commit is contained in:
		
							parent
							
								
									ad7a6028b3
								
							
						
					
					
						commit
						27cec1d8cc
					
				
					 10 changed files with 27 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,7 @@
 | 
			
		|||
#ifndef CONTROLLER_HELPERS_H
 | 
			
		||||
#define CONTROLLER_HELPERS_H
 | 
			
		||||
 | 
			
		||||
#include <time.h>
 | 
			
		||||
#include <confini.h>
 | 
			
		||||
#include <config.h>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -32,6 +33,6 @@ void
 | 
			
		|||
helper_parse_cli(int argc, const char **argv, config_t *config);
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
helper_get_weekday(const time_t timestamp_now);
 | 
			
		||||
helper_get_weekday(const struct tm *time_struct);
 | 
			
		||||
 | 
			
		||||
#endif /* CONTROLLER_HELPERS_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,6 +14,6 @@ period_t*
 | 
			
		|||
period_create(uint16_t start, uint16_t end);
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
period_includes_time(period_t *period, uint16_t timestamp);
 | 
			
		||||
period_includes_time(period_t *period, struct tm *time_struct);
 | 
			
		||||
 | 
			
		||||
#endif /* CONTROLLER_PERIOD_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -51,7 +51,7 @@ int
 | 
			
		|||
relay_save(relay_t *relay, MDB_env *mdb_env);
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
relay_is_active(relay_t *relay, time_t timestamp_now);
 | 
			
		||||
relay_is_active(relay_t *relay, struct tm *time_struct);
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
relay_free(relay_t *relay);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue