If your source lacks information about when the document was published, there is a standardized abbreviation for this: (n.d.), meaning “no date”.
(Foster, n.d.)
Write the entry according to source type. Use “n.d.” instead of year.
Foster, M. (n.d.). My Life on Earth. Tellus Publishing.
Add according to type of source. In the field Year, write: n.d.
Add according to type of source. Leave the field Date blank, and Zotero will automatically add n.d.