# Recursion errors in Inputs.DateTime.py

**URL:** <https://forum.inductiveautomation.com/t/recursion-errors-in-inputs-datetime-py/86802>\
**Category:** Automated Testing\
**Tags:** ignition81, perspective\
**Created:** [March 5, 2024, 3:09am UTC](https://forum.inductiveautomation.com/t/recursion-errors-in-inputs-datetime-py/86802 "2024-03-05T03:09:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Sadleir](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Daniel\_Sadleir](https://forum.inductiveautomation.com/u/Daniel_Sadleir)\
**Post date:** [March 5, 2024, 3:09am UTC](https://forum.inductiveautomation.com/t/recursion-errors-in-inputs-datetime-py/86802/1 "2024-03-05T03:09:29Z")

</div>

I've been running into some Recursion Errors while testing the get\_selected\_month and get\_selected\_year functions in DateTime.py, since they call themselves.  
I noticed the get\_selected\_days function calls self.\_picker, and replacing 'self.get...' with 'self.\_picker.get...' for the others looks like it fixes the issue.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 5, 2024, 5:59am UTC](https://forum.inductiveautomation.com/t/recursion-errors-in-inputs-datetime-py/86802/2 "2024-03-05T05:59:58Z")

</div>

You're absolutely right. I'll work on repairing that in the morning. A fix is unlikely to be ready in time to make the 8.1.38 branch we will be making soon, but I'll try.

**Update** : Repair has been provided for internal review. Hopefully it can be picked up first thing in the morning in order to make the branch.
