Update publication.py

Need to pass in the datetime.now function reference so that date is captured at run time. Was causing date to be static on server start.