/** * What is the client's date. * * @return string */ public function browserDate() { return FunctionsDate::timestampToGedcomDate(WT_TIMESTAMP + WT_TIMESTAMP_OFFSET)->display(); }
<a href="?action=edit&user_id=<?php echo $user->getUserId(); ?> "> <?php echo Filter::escapeHtml($user->getUserName()); ?> — <?php echo $user->getRealNameHtml(); ?> </a> </td> <td> <?php echo I18N::translate('User’s account has been inactive too long: ') . FunctionsDate::timestampToGedcomDate($datelogin)->display(); ?> </td> <td> <input type="checkbox" name="del_<?php echo $user->getUserId(); ?> " value="1"> </td> </tr> <?php } } // Check unverified users foreach (User::all() as $user) { if (date('U') - (int) $user->getPreference('reg_timestamp') > 604800 && !$user->getPreference('verified')) {
/** * XML <Now /> element handler */ private function nowStartHandler() { $g = FunctionsDate::timestampToGedcomDate(WT_TIMESTAMP + WT_TIMESTAMP_OFFSET); $this->current_element->addText($g->display()); }