This is a migrated thread and some comments may be shown as answers.

Globalization - Time Zone Support

4 Answers 888 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 29 Oct 2009, 06:43 PM
Team,

Does Telerik Reporting have support for local time zones?

For example...
We are using Telerik Reporting and our data for a report includes date time (e.g. date time email was sent), does Telerik Reporting provide the ability to recognize the System.TimeZoneInfo.Local and adjust all date time data accordingly?

Thanks,
Jon 

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Oct 2009, 03:28 PM
Hello Jon,

There is no out of the box support for such feature in Telerik Reporting and providing this support is up to the developer.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Iman
Top achievements
Rank 2
answered on 01 Feb 2014, 07:59 AM
Hi telerik guys,

Thanks for your amazing produces. As this question asked in 2009 , and we are now in 2014, I wanna know is Time zone supported out of the box in telerik reporting now?
All my date times in database saved in UTC , but my reports should be generated and date times shown depending on time zone.
0
Nasko
Telerik team
answered on 05 Feb 2014, 03:56 PM
Hello Iman,

As Steve have said, it is up to the developer to provide a mechanism for recognizing the time zone and accounting for that later in the report. You can implement such mechanisms as a developer by reorganizing and modifying your data, before you pass it to the report.

Additionally, we provide a powerful tool in the form of User Functions which can help you write your own custom logic to show dates depending on the time zone.

Regards,
Nasko
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
ajpetersen
Top achievements
Rank 1
answered on 04 Sep 2015, 06:38 PM

I was looking for this same functionality and ​here's an example of how I implemented it.

public partial class Report​1 : Telerik.Reporting.Report
    {
        public Report1()
        {
            InitializeComponent();
        }

        [Function(IsVisible = false)]
        public static DateTime ConvertDate(DateTime date)
        {
            return date.UtcToEasternTimeZone();
        }
    }

 

 Usage:

= ConvertDate(Fields.​CreatedDate)

 

 

Hope this helps,

Andrew

Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Steve
Telerik team
Iman
Top achievements
Rank 2
Nasko
Telerik team
ajpetersen
Top achievements
Rank 1
Share this question
or