time_to_unix_string fixed (check for None added)