Modify System Date

nerz
Giga Contributor

I was wondering if there was a good way to test the creation of date-sensitive items, like time cards or changes, by changing the actual system date of the testing environment. Has anyone heard of any ways of doing that? Or is it possible to do a record insert and override the sys_created_on date manually?

1 ACCEPTED SOLUTION

Ravi Prasad1
Tera Guru

You can update the date by writing after insert business rule.


View solution in original post

4 REPLIES 4

Ravi Prasad1
Tera Guru

You can update the date by writing after insert business rule.


Well, the problem is that there are business rules that occur on insert which utilize the sys_created_on date so it's sort of a chicken or the egg situation.


In that case business rule order will play trick.



Have the least order for your business rule.


That's not actually a bad idea, thanks. I'll go try it.