Skip to content

Commit 75ab11a

Browse files
committed
fix(scope): Use locale in hour scope
1 parent 6bfc554 commit 75ab11a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scope/hour-scope.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export class HourScope extends AbstractScope {
2222
}
2323

2424
public formatDate(date: Date, locale?: any): string {
25-
return formatDate(date, 'HH');
25+
const options = locale ? { locale } : this._formattiongOptions;
26+
27+
return formatDate(date, 'HH', options);
2628
}
2729

2830
public title(date: Date): string {

0 commit comments

Comments
 (0)