Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TODO] More readable time #8

Open
sunner opened this issue Aug 28, 2011 · 0 comments
Open

[TODO] More readable time #8

sunner opened this issue Aug 28, 2011 · 0 comments

Comments

@sunner
Copy link
Member

sunner commented Aug 28, 2011

The post time of questions is printed ugly. It should be changed to:

  1. now if it is posted just now.
  2. 2 hours and 40 mins ago if it was posted less than 24 hours ago
  3. FULL DATE if it has been posted for more than 24 hours

The patch should be on the following line of code in view.php:

$a->time = userdate($question->time).'&nbsp('.get_string('early', 'assignment', format_time(time() - $question->time)) . ')';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant