mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
remove duplicated segment
This commit is contained in:
@ -446,15 +446,6 @@ auto waybar::modules::Clock::first_day_of_week() -> weekday {
|
|||||||
|
|
||||||
auto waybar::modules::Clock::get_ordinal_date(const year_month_day& today) -> std::string {
|
auto waybar::modules::Clock::get_ordinal_date(const year_month_day& today) -> std::string {
|
||||||
auto day = static_cast<unsigned int>(today.day());
|
auto day = static_cast<unsigned int>(today.day());
|
||||||
switch (day) {
|
|
||||||
case 11:
|
|
||||||
return "11th";
|
|
||||||
case 12:
|
|
||||||
return "12th";
|
|
||||||
case 13:
|
|
||||||
return "13th";
|
|
||||||
}
|
|
||||||
|
|
||||||
std::stringstream res;
|
std::stringstream res;
|
||||||
res << day;
|
res << day;
|
||||||
if (day >= 11 && day <= 13) {
|
if (day >= 11 && day <= 13) {
|
||||||
|
Reference in New Issue
Block a user