Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Commit

Permalink
Fix firebase date logging. (#1211)
Browse files Browse the repository at this point in the history
DEV
  • Loading branch information
Nikhil Thorat authored Aug 6, 2018
1 parent 418d8af commit a51dffc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration_tests/benchmarks/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import 'firebase/database';
import {ApplicationConfig, BenchmarkRunEntry, BenchmarkEntry} from './firebase_types';

// TODO(nsthorat): Support more than Chrome + mac;
const DEVICE = 'chrome_mac';
const DEVICE = 'chrome_mac_webgl';

const karmaFlags = parseKarmaFlags(__karma__.config.args);

Expand All @@ -49,11 +49,11 @@ try {
export async function logBenchmarkRun(
benchmarkName: string, logs: BenchmarkLog[]): Promise<void> {
const date = new Date();
let month = date.getMonth().toString();
let month = (date.getMonth() + 1).toString();
if (month.length === 1) {
month = '0' + month;
}
let day = date.getDay().toString();
let day = date.getDate().toString();
if (day.length === 1) {
day = '0' + day;
}
Expand Down

0 comments on commit a51dffc

Please sign in to comment.