hunk.code_window:                         className='form-control no-resize'
                           rows='6'
                           id='edit_header'
                           maxLength='1024'
                           defaultValue={this.props.channel.header}
                       />
                       {serverError}
                   </Modal.Body>
                   <Modal.Footer>
                       <button
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:                         value={this.state.header}
                           onChange={this.handleChange}
  
hunk.file_path: web/react/components/edit_channel_header_modal.jsx
hunk.type: replace
file: package utils
  
  import (
  	"time"
  )
  
  func MillisFromTime(t time.Time) int64 {
  	return t.UnixNano() / int64(time.Millisecond)
  }
  
  func StartOfDay(t time.Time) time.Time {
  	year, month, day := t.Date()
  	return time.Date(year, month, day, 0, 0, 0, 0, t.Location())
  }
  
  func EndOfDay(t time.Time) time.Time {
  	year, month, day := t.Date()
  	return time.Date(year, month, day, 23, 59, 59, 999999999, t.Location())
  }
  
  func Yesterday() time.Time {
  	return time.Now().AddDate(0, 0, -1)
  }
  