Ticket #13689: 0001-Properly-map-day-values-to-ICU-day-of-week.patch

File 0001-Properly-map-day-values-to-ICU-day-of-week.patch, 713 bytes (added by akshay, 7 years ago)
  • src/kits/locale/DateFormat.cpp

    From e4b34a36803c3ba040a35687d4bd14369506a798 Mon Sep 17 00:00:00 2001
    From: Akshay Agarwal <agarwal.akshay.akshay8@gmail.com>
    Date: Sat, 2 Sep 2017 15:05:28 +0530
    Subject: [PATCH] Properly map day values to ICU day-of-week.
    
    ---
     src/kits/locale/DateFormat.cpp | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/src/kits/locale/DateFormat.cpp b/src/kits/locale/DateFormat.cpp
    index 09fe428..277b87c 100644
    a b BDateFormat::GetDayName(int day, BString& outName,  
    365365        return B_BAD_DATA;
    366366    }
    367367
     368    day = day == 7 ? 1 : day + 1;
     369
    368370    BStringByteSink stringConverter(&outName);
    369371    names[day].toUTF8(stringConverter);
    370372