mirror of
https://github.com/gosticks/web.git
synced 2026-08-12 12:10:20 +00:00
rename helpers -> dateUtils and add header
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
import React, { Component } from "react";
|
||||
import { animateScroll } from "react-scroll";
|
||||
import { WithAPIData } from "../common/WithAPIData";
|
||||
import { humanTimestamp } from "../../util/helpers";
|
||||
import { humanTimestamp } from "../../util/dateUtils";
|
||||
import api from "../../util/api";
|
||||
|
||||
export interface LiveLogProps {
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
/* Pi-hole: A black hole for Internet advertisements
|
||||
* (c) 2019 Pi-hole, LLC (https://pi-hole.net)
|
||||
* Network-wide ad blocking via your own hardware.
|
||||
*
|
||||
* Web Interface
|
||||
* Date/Time utility functions
|
||||
*
|
||||
* This file is copyright under the latest version of the EUPL.
|
||||
* Please see LICENSE file for your rights under this license. */
|
||||
|
||||
export function humanTimestamp(input: number) {
|
||||
var date = new Date(input * 1000);
|
||||
var hours = date.getHours();
|
||||
Reference in New Issue
Block a user