Skip to content

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