Quartz. net bug

Source: Internet
Author: User

In quartz. NET 1.0 or from SVNCodeSelf-compiledProgramWhen the database is used as the job store, if the system time zone is improperly set, quartz. NET will not be able to run normally. The error occurs in row 967 (marked in red) of stdadodelegate. cs. Here, it should be changed to timezoneinfo. ID (C #3.5 ).

 

///   <Summary>
/// Insert the cron trigger data.
///   </Summary>
///   <Param name = "conn"> The DB connection </Param>
///   <Param name = "Trigger"> The trigger to insert </Param>
///   <Returns> The number of rows inserted </Returns>
Public   Virtual   Int Insertcrontrigger (connectionandtransactionholder Conn, crontrigger trigger)
{
Using (Idbcommand cmd = Preparecommand (Conn, replacetableprefix (sqlinsertcrontrigger )))
{
Addcommandparameter (CMD, 1 , " Triggername " , Trigger. Name );
Addcommandparameter (CMD, 2 , " Triggergroup " , Trigger. group );
Addcommandparameter (CMD, 3 , " Triggercronexpression " , Trigger. cronexpressionstring );
Addcommandparameter (CMD, 4 , " Triggertimezone " , trigger. timezone. standardname );

return cmd. executenonquery ();
}< BR >}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.