From 50a0e5af10cc41747c8b5a9fa2802c4e63ceab7e Mon Sep 17 00:00:00 2001
From: Akshay Agarwal <agarwal.akshay.akshay8@gmail.com>
Date: Fri, 26 May 2017 12:07:26 +0530
Subject: [PATCH] Handle the UDAT_DAY_OF_WEEK_FIELD case in
BDateFormat::GetFields().
Handle the UDAT_DAY_OF_WEEK_FIELD case and assign the corresponding
BDateElement object i.e B_DATE_ELEMENT_WEEKDAY to the fields array
at the appropriate offset.
---
src/kits/locale/DateFormat.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/kits/locale/DateFormat.cpp b/src/kits/locale/DateFormat.cpp
index 6542c3b..2a386a5 100644
a
|
b
|
BDateFormat::GetFields(BDateElement*& fields, int& fieldCount,
|
237 | 237 | case UDAT_DATE_FIELD: |
238 | 238 | fields[i] = B_DATE_ELEMENT_DAY; |
239 | 239 | break; |
| 240 | case UDAT_DAY_OF_WEEK_FIELD: |
| 241 | fields[i] = B_DATE_ELEMENT_WEEKDAY; |
| 242 | break; |
240 | 243 | default: |
241 | 244 | fields[i] = B_DATE_ELEMENT_INVALID; |
242 | 245 | break; |