src/helpers/log-entry.js
/**
   * Get a formatted date string for this log entry
   *
   * @param {boolean} utc Indicates timestamps should be UTC
   * @returns {string} The formatted date
   */
Get a formatted date string for this log entry
@param {boolean} utc Indicates timestamps should be UTC
@returns {string} The formatted date
Get a formatted date string for this log entry @param { boolean } utc Indicates timestamps should be UTC @returns { string } The formatted date
formattedDate(utc = false) {
    const {created} = this.raw
    const suffix = utc ? 'O' : ''
    const parsedDate = dateFormat(`yyyy-MM-dd hh:mm:ss${suffix}`, new Date(created * 1000))
    if (!utc) {
      return parsedDate
    }
    return parsedDate.substring(0, parsedDate.length - 5)
  }
formattedDate ( utc = false ) { const { created } = this . raw const suffix = utc ? 'O' : '' const parsedDate = dateFormat ( ` ${ suffix } ` , new Date ( created * 1000 ) ) if ( ! utc ) { return parsedDate } return parsedDate . substring ( 0 , parsedDate . length - 5 ) }
Get a formatted date string for this log entry
 @param {boolean} utc Indicates timestamps should be UTC
 @returns {string} The formatted date
Get a formatted date string for this log entry @param { boolean } utc Indicates timestamps should be UTC @returns { string } The formatted date