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

AM/PM #98

Closed
Chyase opened this issue Mar 8, 2016 · 8 comments
Closed

AM/PM #98

Chyase opened this issue Mar 8, 2016 · 8 comments

Comments

@Chyase
Copy link

Chyase commented Mar 8, 2016

Is it possible to get AM/PM on the js?

Thanks,

@monsieurpouet
Copy link

He is there.
In config.js, you've a parameter to change that. At the top of the file.

@Chyase
Copy link
Author

Chyase commented Mar 17, 2016

var config = {
    lang: 'nl',
    time: {
        timeFormat: 12,
        displaySeconds: true,
        digitFade: false,
    },

Where at?

@danynek
Copy link

danynek commented Mar 17, 2016

Time format: 12 or 24

DM

    1. 2016 v 13:55, Chyase notifications@github.com:

var config = {
lang: 'nl',
time: {
timeFormat: 12,
displaySeconds: true,
digitFade: false,
},
Where at?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

@Chyase
Copy link
Author

Chyase commented Mar 17, 2016

I'm actually looking for it to say if its AM or PM- not 24 hours vs 12 hours-

@monsieurpouet
Copy link

Yes, I thought about this.
Maybe, I didn't understood the question. You talk about AM/PM and not 12/24.
For me, it was the same things.

@Chyase
Copy link
Author

Chyase commented Mar 17, 2016

Yeah I just want it to show AM when its morning and then PM when its afternoon/night

@jerome2710
Copy link

You might use the format character a to show AM/PM.

Have a look at js/time/time.js near line 74:
$(this.timeLocation).html(_now.format(this._timeFormat + ':mm[<span class="sec">]ss[</span>] a'));
Note the added a near the end, this will result in AM/PM.

Good luck!

@Chyase
Copy link
Author

Chyase commented Mar 18, 2016

Jerome, that worked. Thanks!

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

5 participants