yanweiyuan3
2023-10-27 d1d15b61dfcf7fd0f800b32359f082cf580ed556
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Quintiq file version 2.0
#parent: #root
Method GetUserTimeZoneID () as String id:Method_LibDEF_DialogEditEventCleanupDaemon_GetUserTimeZoneID
{
  #keys: '[143398.0.685617845]'
  Body:
  [*
    // Use GMT as default
    /* This has to be done this way, because when the server runs in legacy timezone mode,
     * the Application will still return the timezone ID of the user preference,
     * which is undesired when not running in the full timezone mode.
     * TODO: An RFC will be raised, this implementation might not be needed once it is fixed.
     */
    timezone := "GMT";
    if( TimeZone::HasTimeZoneSupport() )
    {
      timezone := TimeZone::ObjectTimeZone( Application ) .ID();
    }
    
    return timezone;
  *]
}