diff --git a/system/services/taskmanager/CronUtil.cfc b/system/services/taskmanager/CronUtil.cfc index de348c5db..e10abd538 100644 --- a/system/services/taskmanager/CronUtil.cfc +++ b/system/services/taskmanager/CronUtil.cfc @@ -37,7 +37,7 @@ component displayName="Cron util" { return "disabled"; } - var locale = CreateObject( "java", "java.util.Locale" ).of( UCase( ListFirst( arguments.locale, "-" ) ) ); + var locale = CreateObject( "java", "java.util.Locale" ).forLanguageTag( UCase( ListFirst( arguments.locale, "-" ) ) ); var cronObj = _getCrontabExpressionObject( arguments.crontabExpression ); var descriptor = CreateObject( "java", "com.cronutils.descriptor.CronDescriptor", _getLib() ).instance( locale );