feat: add comment
This commit is contained in:
		
							parent
							
								
									a871dcaebe
								
							
						
					
					
						commit
						60bad8279e
					
				|  | @ -14,6 +14,7 @@ using waybar::modules::waybar_time; | ||||||
| waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config) | waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config) | ||||||
|     : ALabel(config, "clock", id, "{:%H:%M}", 60), fixed_time_zone_(false) { |     : ALabel(config, "clock", id, "{:%H:%M}", 60), fixed_time_zone_(false) { | ||||||
|   if (config_["timezone"].isString()) { |   if (config_["timezone"].isString()) { | ||||||
|  |     spdlog::warn("As using a timezone, some format args may be missing as the date library havn't got a release since 2018."); | ||||||
|     time_zone_ = date::locate_zone(config_["timezone"].asString()); |     time_zone_ = date::locate_zone(config_["timezone"].asString()); | ||||||
|     fixed_time_zone_ = true; |     fixed_time_zone_ = true; | ||||||
|   } |   } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue