Skip to content

Added absoluteTime as config option#3

Open
CommanderB wants to merge 8 commits into
CFenner:masterfrom
CommanderB:master
Open

Added absoluteTime as config option#3
CommanderB wants to merge 8 commits into
CFenner:masterfrom
CommanderB:master

Conversation

@CommanderB
Copy link
Copy Markdown

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

Comment thread localtransport.js Outdated
span.innerHTML = moment(depature).fromNow();
} else {
if (config.timeFormat !== 24) {
span.innerHTML = 'at ' + moment(depature).format('h:mm A');
Copy link
Copy Markdown
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