rafmacalaba commited on
Commit
4ee6d18
·
verified ·
1 Parent(s): 77cea28

browser ts matches server format

Browse files
Files changed (1) hide show
  1. review.html +1 -1
review.html CHANGED
@@ -277,7 +277,7 @@ async function hubCommit(entry) {
277
  if (r.ok) rows = (await r.text()).split('\n').filter(Boolean).map(JSON.parse);
278
  } catch (e) {}
279
  rows = rows.filter(x => !(x.queue === entry.queue && x.key === entry.key));
280
- rows.push({...entry, ts: new Date().toISOString()});
281
  const content = btoa(unescape(encodeURIComponent(rows.map(x => JSON.stringify(x)).join('\n') + '\n')));
282
  const nd = [{key: 'header', value: {summary: `ruling ${who}: ${entry.key}=${entry.ruling} (web)`, description: ''}},
283
  {key: 'file', value: {content, path, encoding: 'base64'}}].map(o => JSON.stringify(o)).join('\n');
 
277
  if (r.ok) rows = (await r.text()).split('\n').filter(Boolean).map(JSON.parse);
278
  } catch (e) {}
279
  rows = rows.filter(x => !(x.queue === entry.queue && x.key === entry.key));
280
+ rows.push({...entry, ts: new Date().toISOString().replace(/\.\d+Z$/, '+00:00')});
281
  const content = btoa(unescape(encodeURIComponent(rows.map(x => JSON.stringify(x)).join('\n') + '\n')));
282
  const nd = [{key: 'header', value: {summary: `ruling ${who}: ${entry.key}=${entry.ruling} (web)`, description: ''}},
283
  {key: 'file', value: {content, path, encoding: 'base64'}}].map(o => JSON.stringify(o)).join('\n');