Add parameter for local time, added try/catch
Add parameter for local time, added try/catch

Splaxi/dbatools,kozloski/dbatools,dsolodow/dbatools,wsmelton/dbatools,sqlpadawan/dbatools,SirCaptainMitch/dbatools