new date time functions are implemented but hidden

Description

  • SetDay Sets the day on the Date object.

  • SetHour Sets the hour on the Date object.

  • SetMinute Sets the minute on the Date object.

  • SetMonth Sets the month on the Date object.

  • SetSecond Sets the second on the Date object.

  • SetYear Sets the year on the Date object.

there are marked status hidden, with a __ prefix

Environment

None

Attachments

2

Activity

Michael Offner 23 December 2022 at 13:00

It is NOT an accident tha they are hidden.

This functions only exists for one reason, in case someone does mydate.setSecond(3) does not use the java method of the object via refelction. But is is bad practice to use this functions in the first place and should not be embraced, because they completely ignore timezone and locales.

They are also deprecated in java for the same reason, see description here:

Zac Spitzer 29 June 2022 at 07:59

this is causing the test case for to fail

Pothys - MitrahSoft 10 June 2022 at 10:34
Edited

I have removed the hidden status from these datetime functions and updated the testcase
Pull Request:

Zac Spitzer 9 June 2022 at 16:06
Edited

for 6.0, can you make them not hidden and check/add any missing test cases please?

Fixed

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 26 October 2020 at 03:09
Updated 23 December 2022 at 13:00
Resolved 23 December 2022 at 13:00