Use MessagePack on disk

This commit is contained in:
Ken-Håvard Lieng 2016-01-17 23:33:52 +01:00
parent 1def24500a
commit 76f99c8332
55 changed files with 11993 additions and 85 deletions

View file

@ -1,4 +1,4 @@
import { padLeft } from 'lodash';
import padStart from 'lodash/padStart';
export wrapMessages from './wrapMessages';
@ -11,8 +11,8 @@ export function normalizeChannel(channel) {
}
export function timestamp(date = new Date()) {
const h = padLeft(date.getHours(), 2, '0');
const m = padLeft(date.getMinutes(), 2, '0');
const h = padStart(date.getHours(), 2, '0');
const m = padStart(date.getMinutes(), 2, '0');
return h + ':' + m;
}