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

Added absoluteTime as config option #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

CommanderB
Copy link

Adds a absoluteTime flag to display time as 'in xx mins', false, default or 'at hh:mm' when true.

Also fixed departure_time and alternatives in getParams to use config variables

span.innerHTML = moment(depature).fromNow();
} else {
if (config.timeFormat !== 24) {
span.innerHTML = 'at ' + moment(depature).format('h:mm A');
Copy link
Owner

@CFenner CFenner May 2, 2016

Choose a reason for hiding this comment

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

'at ' should be localized if it's not possible via moments

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.

2 participants