I have a hard time understanding the docs. It says that it is recommended to use DateTimeImmutable, but using it gives me the wrong time (I want the server time always, never what the wp admin has set) So my context is that I do not want to be left at the mercy of any wp admin. And I preferably do not want to use any wordpress specific functions.
No, I don’t think I can give you that. It would, however, be very easy for you to check if the variables you are trying to use are arrays before using them as such.