# Issue in DateTimePicker's 'select\_time\_only\_not\_date'

**URL:** <https://forum.inductiveautomation.com/t/issue-in-datetimepickers-select-time-only-not-date/89329>\
**Category:** Automated Testing\
**Tags:** ignition81, perspective\
**Created:** [April 24, 2024, 1:52am UTC](https://forum.inductiveautomation.com/t/issue-in-datetimepickers-select-time-only-not-date/89329 "2024-04-24T01:52: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:** [April 24, 2024, 1:52am UTC](https://forum.inductiveautomation.com/t/issue-in-datetimepickers-select-time-only-not-date/89329/1 "2024-04-24T01:52:29Z")

</div>

I found a strange issue in PerspectiveComponents\Common\DateTimePicker's 'select\_time\_only\_not\_date' method.  
When modifying the seconds, the target is aiming at the previous\_minute\_chevron rather than the previous\_second\_chevron, but it looks like there isn't a previous\_second\_chevron to use here anyway. Should one be defined here?

---

<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:** [April 24, 2024, 8:51pm UTC](https://forum.inductiveautomation.com/t/issue-in-datetimepickers-select-time-only-not-date/89329/2 "2024-04-24T20:51:52Z")

</div>

Dang.  
You're right in that it's pointing to the wrong chevron/arrow (minutes instead of seconds). We'll need to update it to correctly point to the seconds chevron. There's a second wrinkle of complexity though because the existence check is going to throw a TimeoutException in the event a user supplies seconds as part of their PerspectiveDate object but the DateTime Picker (or Input) is not formatted to include seconds...

```python
        seconds = date.seconds
        if seconds is not None: # if the Perspective date has seconds
            # The following line will throw a TimeoutException if the DTP/DTI is not 
            # formatted to display seconds
            current_seconds = int(self.get_seconds())
            if self._seconds_input.find().is_enabled():

```

I'll work to get a fix in place soon.
