Possible bug in DateFiled

Hi all

I believe there’s a bug in the DateField.
I can’t save the date 01/01/1970 (First of January 1970)

Best Regards,
Pedro

In fact selecting 01/01/1970 doesn’t even fire the the component’s valueChangedListener, the DateField immediately reverts to old value.
This is problably some odd behaviour related to Date(0), how to solve?
Funny as it seems it was discovered by a user that was born on that day.

Thanks,
Pedro

Hi,

Unfortunately, I cannot reproduce the problem. I can set 01/01/1970 both programmatically and through the interface. I will be able to help you if you send us a small sample project along with reproduction scenario that demonstrates the issue. Also, it would be helpful, if you send us detailed information about your time zone.

Regards,
Gleb

Hi Gleb

That’s strange because I can confirm the problem in all my projects. Just made you a new project with one entity with two dates so I can have each one inside and outside a field group. I can choose and record any possible date other than 01/01/1970. I’m in Portugal and our Time Zone is UTC+00:00 Dublin, Lisbon, London.
Please check the demo attached,
Thanks,
Pedro

DateFieldSample.rar (186.3K)

Thank you for reporting the problem. As I expected, the bug is reproduced only with your time zone. I’ve created the issue.

Regards,
Gleb

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/PL-9178