Skip to content

Commit 34248c0

Browse files
committed
- (Bug Fix) Fixed an issue with the time being overridden upon inheritance in the TwentyFourHour clock face
1 parent 329976f commit 34248c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/flipclock/js/faces/twentyfourhourclock.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @param object Pass the time that should be used to display on the clock.
2929
*/
3030

31-
build: function() {
31+
build: function(time) {
3232
var t = this;
3333
var children = this.factory.$el.find('ul');
3434

@@ -38,7 +38,7 @@
3838
this.factory.time = new FlipClock.Time(this.factory, this.factory.original);
3939
}
4040

41-
var time = this.factory.time.getMilitaryTime();
41+
var time = time ? time : this.factory.time.getMilitaryTime(false, this.showSeconds);
4242

4343
if(time.length > children.length) {
4444
$.each(time, function(i, digit) {
@@ -62,7 +62,7 @@
6262
flip: function(time, doNotAddPlayClass) {
6363
this.autoIncrement();
6464

65-
time = time ? time : this.factory.time.getMilitaryTime();
65+
time = time ? time : this.factory.time.getMilitaryTime(false, this.showSeconds);
6666

6767
this.base(time, doNotAddPlayClass);
6868
}

0 commit comments

Comments
 (0)