Project: springxd
Issue XD-1922: Make Cron-based Triggers TimeZone aware 
Currently specified Cron Expressions are executed in the Container's default TimeZone. In *Trigger.xml* we specify: {code}	{code} This translates in *org.springframework.integration.config.xml.PollerParser* to {code} BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(CronTrigger.class); builder.addConstructorArgValue(cronAttribute) {code} Which will call *org.springframework.scheduling.support.CronTrigger*: {code}	/**	* Build a {@link CronTrigger} from the pattern provided in the default time zone.	* @param cronExpression a space-separated list of time fields,	* following cron expression conventions	*/	public CronTrigger(String cronExpression) {	this.sequenceGenerator = new CronSequenceGenerator(cronExpression);	} {code} "Build a {@link CronTrigger} from the pattern provided in the *default time zone*." We need to pass-in a timezone. *Should cron expressions as part of an XD *Definition* have a TimeZone parameter?* When creating the stream via the UI or the Shell the timezone can be inferred (if not specified) but should be mandatory for the REST API, meaning being passed in as a mandatory parameter (OR alternatively, if not passed in we assume the Cron expression is specified for UTC). That way we could ensure that a (Stream/Job) Definition is globally valid.
Story points: 8