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,
|
365 | 365 | return B_BAD_DATA; |
366 | 366 | } |
367 | 367 | |
| 368 | day = day == 7 ? 1 : day + 1; |
| 369 | |
368 | 370 | BStringByteSink stringConverter(&outName); |
369 | 371 | names[day].toUTF8(stringConverter); |
370 | 372 | |