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

Introducing relative times: feature request #219 #358

Merged
merged 5 commits into from May 1, 2013
Merged

Introducing relative times: feature request #219 #358

merged 5 commits into from May 1, 2013

Conversation

eurich
Copy link
Member

@eurich eurich commented Apr 29, 2013

This PR is up for discussion, please wait before merging..

Question is: Where do we want relative times? I'd personally go with the frontend only and use the standard time format inside all logs / admin area.

Next question: Do we need relative times for future events (e.g. poll expire date, calendar events)? I'd favour real dates

Usage would be: relativeTime() instead of timeformat();

 
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
@Spuds
Copy link
Contributor

Spuds commented Apr 29, 2013

Question is: Where do we want relative times? I'd personally go with the frontend only and use the standard time format inside all logs / admin area.

I'd vote for this ... also do we want to change timeformat() to standardTime() or serverTime() ... something more descriptive and in line with the proposed relativeTime() ?

@eurich
Copy link
Member Author

eurich commented Apr 30, 2013

standardTime() is fine for me.. Otherwise I could simply rename the new function to relativetimeformat() ?Personally I prefer camelCase names regarding readability, nonetheless I'm fine with whatever the majority likes..

return $past_time;
}

$past_time = time()- $timestamp;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after right parenthesis.

@norv
Copy link
Contributor

norv commented Apr 30, 2013

Nice to see this , thanks TE!

User interface-only sounds good to me.
standardTime() seems more appropriate and yes, readable.
/me thinks how many widely used functions we changed and didn't document any :)

Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Bug was: Fatal error: Declaration of Control_Verification_Captcha::showVerification() must be compatible with that of Control_Verifications::showVerification() 
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
@eurich
Copy link
Member Author

eurich commented May 1, 2013

Here we go, Renamed the timeformat function to standardTime and introduced the relativeTime() in parts of the user interface.
Commit #a27e930 is a bugfix for Control_verification..
/me was to lazy to create a new branch 👅

@norv
Copy link
Contributor

norv commented May 1, 2013

Thank you! :) Lets see it at work.

norv added a commit that referenced this pull request May 1, 2013
Introducing relative times:  feature request #219
@norv norv merged commit b58851b into elkarte:master May 1, 2013
@emanuele45 emanuele45 mentioned this pull request May 2, 2013
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

Successfully merging this pull request may close these issues.

None yet

3 participants