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; 
 | 
  *] 
 | 
} 
 |