• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mac-s-g / react-json-view / #1222

pending completion
#1222

push

web-flow
Merge pull request #342 from mac-s-g/bump-patch

bump patch version

229 of 349 branches covered (65.62%)

Branch coverage included in aggregate %.

396 of 597 relevant lines covered (66.33%)

25.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/js/components/DataTypes/Date.js
1
import React from 'react';
2
import DataTypeLabel from './DataTypeLabel';
3

4
//theme
5
import Theme from './../../themes/getStyle';
6

7
export default class extends React.PureComponent {
8
    render() {
9
        const type_name = 'date';
×
10
        const { props } = this;
×
11
        const display_options = {
×
12
            weekday: 'short',
13
            year: 'numeric',
14
            month: 'short',
15
            day: 'numeric',
16
            hour: '2-digit',
17
            minute: '2-digit'
18
        };
19
        return (
×
20
            <div {...Theme(props.theme, 'date')}>
21
                <DataTypeLabel type_name={type_name} {...props} />
22
                <span class="date-value" {...Theme(props.theme, 'date-value')}>
23
                    {props.value.toLocaleTimeString('en-us', display_options)}
24
                </span>
25
            </div>
26
        );
27
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc