You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set a format for the duration time, but I am unable to do so. The default format seems to be mm:ss, but I'd like to change that to (HH:mm:ss).
This is what I tried to do: <Moment element={Text} date={this.props.start} format="HH:mm:ss" durationFromNow unix />
This only return the this.props.start (unix time) formatted as HH:mm:ss and seems to forget about the durationFromNow.
I also tried <Moment element={Text} date={this.props.start} format="mm:ss" durationFromNow unix />
This returns 1,798:00
The text was updated successfully, but these errors were encountered:
I'm trying to set a format for the duration time, but I am unable to do so. The default format seems to be mm:ss, but I'd like to change that to (HH:mm:ss).
This is what I tried to do:
<Moment element={Text} date={this.props.start} format="HH:mm:ss" durationFromNow unix />
This only return the this.props.start (unix time) formatted as HH:mm:ss and seems to forget about the durationFromNow.
I also tried
<Moment element={Text} date={this.props.start} format="mm:ss" durationFromNow unix />
This returns
1,798:00
The text was updated successfully, but these errors were encountered: