且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

工作流中的日期比较结果为False,当它实际为True时

更新时间:2023-11-30 22:49:34

由于时间原因,它不匹配两个日期。


您可以创建两个变量来存储日期。在操作下,选择"为日期/时间字段设置时间部分"动作并使用当前字段值设置两个变量< g class =" gr_ gr_444 gr-alert gr_spell gr_inline_cards gr_run_anim
ContextualSpelling ins-del multiReplace"数据-GR-ID =&QUOT; 444&QUOT; ID = QUOT; 444&QUOT;&GT;日期时间&LT; / g取代;现在。


它会起作用。



Hi folks,

We have a workflow that seems to have stopped working! 

It is comparing 2 dates and it used to work.  It puts the item Created Date and Today and puts them into local variables and then does the test:

The log writes this: 

Something is not right here!  CreatedDate = 16/04/2019 11:59:16 and Today = 16/04/2019 00:00:00

So the dates are the same, but is think they ate different! Like I say, this used to work and has stopped working.

Any ideas?

Thanks

A.

Because of the time, it is not matching both dates.

You can create two variables to store the date. Under action choose "Set time portion for date/time field" action and set both variables with your current field value and <g class="gr_ gr_444 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="444" id="444">datetime</g> now.

It will work.