Modified the post functionality based on date related to the event date