[Time Zone] ConvertFromTimeZone

[Time Zone] ConvertFromTimeZone

  
Forge Component
(5)
Published on 11 Oct by André Vieira
5 votes
Published on 11 Oct by André Vieira
I'm using the ConvertFromTimeZone action to convert from the current system time zone, to my time zone; however, the ConvertFromTimeZone action asks for the SourceTimeZone to be in a text format. How can I get the current system's time zone into the SourceTimeZone?
Hi!

check the sample application. You have there the information about the system time zone and how to convert to other time zones. You should probably use GetCurrentTimeZone to get the system time zone...
Hi,
I'm still a bit confused. What am I supposed to write (because it asks for a Text data type):
 ConvertFromTimeZone( ,Here, And Here)
Having an example in the Action Description would be good.

Hi Carlos,

You are right! The parameters of this action are missing some description :(
These are supposed to be identifiers of the TimeZoneInfo in C#.
You can validate how to use this action in the TimeZone module:
  • Open the screen in the MainFlow.
  • Double click the expression next to the  'Converted Data Time' label.
This expression uses this action.

Hope this helps, If not please share your module so that I can have a look and see what's missing...
Cheers
André,
how exactly am I supposed to write the TimeZone name in ConvertFromUTC(DateTimeUTC,TimeZone)?

Someone told me to use the names shown here:
https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx

I don't really think that's how it works so...
Use the test page to determine the identifier you want (http://andrevieira.outsystemscloud.com/TimeZone/)
From the drop down select the timezone you want and below you will see the identifier which is the value you should use.