Merge pull request #174 from varasev/time-text-labels

(Fix) Add some text labels for clear displaying of time
This commit is contained in:
Vadim Arasev 2018-09-21 11:27:26 +03:00 committed by GitHub
commit 28f27d7c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -757,7 +757,7 @@ export class BallotCard extends React.Component {
{children}
<div className="ballots-about-i ballots-about-i_time">
<div className="ballots-about-td ballots-about-td-title">
<p className="ballots-about-i--title">Ballot Time</p>
<p className="ballots-about-i--title">Ballot Time (UTC)</p>
</div>
<div className="ballots-about-td ballots-about-td-value">
<p className="ballots-i--created">{this.startTime}</p>

View File

@ -29,7 +29,7 @@ export class BallotEmissionFundsMetadata extends React.Component {
@action('Get beginDateTime and endDateTime')
getDateTimeLimits = async () => {
const { votingToManageEmissionFunds } = this.props.contractsStore
const dateTimeFormat = 'MM/DD/YYYY HH:mm'
const dateTimeFormat = 'MM/DD/YYYY h:mm A'
this.beginDateTime = '...loading date...'
this.endDateTime = '...loading date...'
@ -69,7 +69,8 @@ export class BallotEmissionFundsMetadata extends React.Component {
if (this.noActiveBallotExists === true) {
note = (
<p>
The ballot can be created starting from <b>{this.beginDateTime}</b> and will end on <b>{this.endDateTime}</b>.
The ballot can be created starting from <b>{this.beginDateTime}</b> (local time) and will end on{' '}
<b>{this.endDateTime}</b> (local time).
</p>
)
} else if (this.noActiveBallotExists !== true) {