Update publication.py

need to pass in the datetime.now function reference so that date is captured at run time.