Skip to content

keep seconds part of the DateTime value - #583

Open
barwi wants to merge 1 commit into
espocrm:masterfrom
barwi:patch-5
Open

keep seconds part of the DateTime value#583
barwi wants to merge 1 commit into
espocrm:masterfrom
barwi:patch-5

Conversation

@barwi

@barwi barwi commented Jul 6, 2017

Copy link
Copy Markdown
Contributor

Prevent to set seconds to zero when hours & mins values are not changed.

Prevent to set seconds to zero when hours & mins values are not changed.
@yurikuzn

yurikuzn commented Jul 7, 2017

Copy link
Copy Markdown
Contributor

Hi,

Could you describe how to reproduce the bug?

The fix is not fine to accept. data function shouldn't change a state. It's only for rendering.

Thanks

@barwi

barwi commented Jul 7, 2017

Copy link
Copy Markdown
Contributor Author

Time picker in edit mode resets seconds to zero every time, even when no any changes has done on the form. It is not visible on user side because data is formatted by 'hh:mm' template (seconds is hidden). But in general, changing value of the field in this way should be avoided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants