Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340972 - BirtDateTime.weekDay gives wrong results on birt viewer
Summary: BirtDateTime.weekDay gives wrong results on birt viewer
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-ReportViewer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-25 11:17 EDT by Lukasz Walach CLA
Modified: 2011-05-26 13:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz Walach CLA 2011-03-25 11:17:14 EDT
Build Identifier: R-R1-2_6_1-201009171723

I've put "BirtDateTime.weekDay('2011-02-27', 3)" in Dynamic Text and I'm getting:
BirtDateTime.weekDay('2011-02-27', 3) = 6 in RCP designer
BirtDateTime.weekDay('2011-02-27', 3) = 5 in birt viewer

Reproducible: Always

Steps to Reproduce:
1. Create report with one Dynamic Text containing:
BirtDateTime.weekDay('2011-02-27', 3)
2. Preview report on RCP designer
3. Deploy http://download.eclipse.org/birt/downloads/build.php?build=R-R1-2_6_1-201009171723 on Linux, set up locale to en_GB and run report
Comment 1 Xiaoying Gu CLA 2011-03-28 04:25:07 EDT
I can not reproduce this issue on Redhat AS5 with 2.6.1 and 2.6.2 release.

BirtDateTime.weekDay('2011-02-27', 3) = 6 in birt viewer. (LANG=en_GB.UTF-8)
Comment 2 Lukasz Walach CLA 2011-03-28 08:01:06 EDT
Sorry, not enough info.
Set BIRT_VIEWER_TIMEZONE in WEB-INF/web.xml:
        <context-param>
                <param-name>BIRT_VIEWER_TIMEZONE</param-name>
                <param-value>"Europe/Helsinki"</param-value>
        </context-param>
Comment 3 Xiaoying Gu CLA 2011-03-28 22:00:32 EDT
(In reply to comment #2)
> Sorry, not enough info.
> Set BIRT_VIEWER_TIMEZONE in WEB-INF/web.xml:
>         <context-param>
>                 <param-name>BIRT_VIEWER_TIMEZONE</param-name>
>                 <param-value>"Europe/Helsinki"</param-value>
>         </context-param>

I tired to add the BIRT_VIEWER_TIMEZONE setting in web viewer 2.6.1 , but still got the correct result. It returns 6 in viewer.
Comment 4 Xiaoying Gu CLA 2011-03-31 01:57:14 EDT
Set as workforme based on comment 3