1. Is there any way to get local time (that is, the machine run web browser) rather than server time (webserver)?
System variable {Date} {Time} returns server time.
2. It looks like report control is binding C#2.0 rather than 3.5.
So I think TimeZoneInfo (which is defined at 3.5) cannot be recognized in the script.
Is there any solution for this?
Thanks
Local TimeZone
Local TimeZone
Hello.
Thank you.
The report is rendered on server and it's impossible to get client time. You should get it by yourself, for example, using JavaScript.jkoo wrote:1. Is there any way to get local time (that is, the machine run web browser) rather than server time (webserver)?
System variable {Date} {Time} returns server time.
You could use our controls with .NET Framework 2.0 and higher. Please, change target .NET Framework version in your project.jkoo wrote:2. It looks like report control is binding C#2.0 rather than 3.5.
So I think TimeZoneInfo (which is defined at 3.5) cannot be recognized in the script.
Is there any solution for this?
Thank you.
Local TimeZone
My target NET framework is 3.5
But System.TimeZoneInfo cannot be recognized at the report.
It's little strange.
But System.TimeZoneInfo cannot be recognized at the report.
It's little strange.
Local TimeZone
Hello.
Thank you.
Please, specify where are you trying to use System.TimeZoneInfo class.jkoo wrote:My target NET framework is 3.5
But System.TimeZoneInfo cannot be recognized at the report.
It's little strange.
Thank you.
Local TimeZone
I want to display local time.
{DateTime.UtcNow} works fine.
But the below is getting compile error.
{TimeZoneInfo.ConvertTime(DateTime.UtcNow, TimeZoneInfo.Local,TimeZoneInfo.FindSystemTimeZoneById("Tokyo Standard Time"))}
Please refer to the attached.
{DateTime.UtcNow} works fine.
But the below is getting compile error.
{TimeZoneInfo.ConvertTime(DateTime.UtcNow, TimeZoneInfo.Local,TimeZoneInfo.FindSystemTimeZoneById("Tokyo Standard Time"))}
Please refer to the attached.
- Attachments
-
- 1819.TimeZoneInfo.png (34.97 KiB) Viewed 4266 times
Local TimeZone
Hello.
Thank you.
Please, add the System.Core.Dll to the Referenced Assemblies list of the Report.jkoo wrote:I want to display local time.
{DateTime.UtcNow} works fine.
But the below is getting compile error.
{TimeZoneInfo.ConvertTime(DateTime.UtcNow, TimeZoneInfo.Local,TimeZoneInfo.FindSystemTimeZoneById("Tokyo Standard Time"))}
Please refer to the attached.
Thank you.
- Attachments
-
- 1822.System.Core.png (45.65 KiB) Viewed 4257 times