mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	created a hotfix for libfmt-8.1.0 and above
This commit is contained in:
		@@ -233,8 +233,9 @@ struct fmt::formatter<waybar_time> : fmt::formatter<std::tm> {
 | 
			
		||||
  template <typename FormatContext>
 | 
			
		||||
  auto format(const waybar_time& t, FormatContext& ctx) {
 | 
			
		||||
#if FMT_VERSION >= 80000
 | 
			
		||||
	auto& tm_format = specs;
 | 
			
		||||
//auto& tm_format = specs;
 | 
			
		||||
#endif
 | 
			
		||||
    return format_to(ctx.out(), "{}", date::format(t.locale, fmt::to_string(tm_format), t.ztime));
 | 
			
		||||
//    return format_to(ctx.out(), "{}", date::format(t.locale, fmt::to_string(tm_format), t.ztime));
 | 
			
		||||
	  return fmt::formatter<std::tm>::format((const std::tm&) t, ctx);
 | 
			
		||||
  }
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user