Skip to content

Conversation

AshotN
Copy link
Contributor

@AshotN AshotN commented Jul 31, 2024

Similar to #1692 but for the edit component.

Should have no impact on date-time component as that was already working correctly.

@AshotN AshotN requested a review from dziraf August 1, 2024 19:14
@AshotN
Copy link
Contributor Author

AshotN commented Aug 8, 2024

@dziraf anything else holding this PR?

const Edit: React.FC<EditPropertyProps> = (props) => {
const { property, onChange, record } = props
const value = (record.params && record.params[property.path]) || ''
const value = record.params ? formatDate(record.params[property.path], property.type) : ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

record.params defaults to {} afaik so this will be truthy always

@dziraf dziraf merged commit 2d2b4f2 into SoftwareBrothers:master Aug 8, 2024
github-actions bot pushed a commit that referenced this pull request Aug 8, 2024
## [7.8.9](v7.8.8...v7.8.9) (2024-08-08)

### Bug Fixes

* propertyType date edit should not convert to local timezone ([#1694](#1694) ([2d2b4f2](2d2b4f2))
Copy link

github-actions bot commented Aug 8, 2024

🎉 This PR is included in version 7.8.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants