@@ -355,7 +355,7 @@ public function readFormParameters()
355355 // supplied timestamp matches the time at which the form was initially requested,
356356 // use the current time instead as publication timestamp, otherwise the article
357357 // would be published in the past rather than "now"
358- $ this ->timeObj ->setTimestamp (TIME_NOW );
358+ $ this ->timeObj ->setTimestamp (\ TIME_NOW );
359359 $ this ->time = $ this ->timeObj ->format ('Y-m-d\TH:i:sP ' );
360360 }
361361 }
@@ -418,7 +418,7 @@ public function validate()
418418 if (empty ($ this ->time ) || !$ this ->timeObj ) {
419419 throw new UserInputException ('time ' );
420420 }
421- if ($ this ->timeObj ->getTimestamp () > TIME_NOW && $ this ->publicationStatus == Article::PUBLISHED ) {
421+ if ($ this ->timeObj ->getTimestamp () > \ TIME_NOW && $ this ->publicationStatus == Article::PUBLISHED ) {
422422 throw new UserInputException ('time ' , 'invalid ' );
423423 }
424424
@@ -431,7 +431,7 @@ public function validate()
431431 throw new UserInputException ('publicationDate ' );
432432 }
433433
434- if (!$ this ->publicationDateObj || $ this ->publicationDateObj ->getTimestamp () < TIME_NOW ) {
434+ if (!$ this ->publicationDateObj || $ this ->publicationDateObj ->getTimestamp () < \ TIME_NOW ) {
435435 throw new UserInputException ('publicationDate ' , 'invalid ' );
436436 }
437437 }
@@ -652,7 +652,7 @@ public function readData()
652652 protected function setDefaultValues ()
653653 {
654654 $ this ->username = WCF ::getUser ()->username ;
655- $ dateTime = DateUtil::getDateTimeByTimestamp (TIME_NOW );
655+ $ dateTime = DateUtil::getDateTimeByTimestamp (\ TIME_NOW );
656656 $ dateTime ->setTimezone (WCF ::getUser ()->getTimeZone ());
657657 $ this ->time = $ dateTime ->format ('c ' );
658658
0 commit comments