Input datetime automation wrong time?

Well, you fixed it for one case, but broke it for the original case for which it was apparently written.

Whether you should use True or False for local time in that example depends on whether or not the input_datetime has both date & time, or just time. The way the example was originally written was apparently for the case where it just had time, which does not work if it has date & time. The way you changed the example it now works if it has both date & time, but now it doesn’t work if it just has time. E.g.:

The reason is because the way the timestamp attribute is calculated is different in these two different cases.

2 Likes