really?? im only found the date custom field
but the date and time wasnt there
i only tried create a string custom fieldo with
a regular expresion
aaaa-mm-dd hh:mm
(20[1-2][0-9])-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(\s)([0-2][0-9]):([0-5][0-9])
cause in the option of the custom field only saids "date" option
DATETIME custom Field type + Search on custom fields
Moderators: Developer, Contributor
Re: DATETIME custom Field type + Search on custom fields
You are right,tetsunami wrote:really?? im only found the date custom field
but the date and time wasnt there
I should not try to give answers if it's time to go to bed
-
- Posts: 14
- Joined: 17 Feb 2010, 07:02
Re: DATETIME custom Field type
Please help me
I would like to add a custom field with Date and time please help me
I would like to add a custom field with Date and time please help me
Re: DATETIME custom Field type + Search on custom fields
Is there any one who know how to add DATETIME custom field in Mantis release 1.2.11? I have tried following the procedure but switch conditions are no longer applicable.
-
- Posts: 1
- Joined: 10 Sep 2018, 15:50
Re: DATETIME custom Field type + Search on custom fields
Hello everyone,
I know I'm late but since the previous answers seem outdated and Google pretty much only points to this topic, I wanted to share the version I adapted, if anyone still cares about these datetime custom fields 6 years later
Here the patch generated from my changes in IntelliJ IDEA, it modifies french custom strings but you can adapt or delete this step depending on your own case.
You should be able to use it (most of my core files were clean/vanilla 2.14.0 before I made these changes) or at least get some inspiration from it
I know I'm late but since the previous answers seem outdated and Google pretty much only points to this topic, I wanted to share the version I adapted, if anyone still cares about these datetime custom fields 6 years later
Here the patch generated from my changes in IntelliJ IDEA, it modifies french custom strings but you can adapt or delete this step depending on your own case.
You should be able to use it (most of my core files were clean/vanilla 2.14.0 before I made these changes) or at least get some inspiration from it
- Attachments
-
- mantis_datetime.txt
- (11.39 KiB) Downloaded 887 times
-
- Posts: 1
- Joined: 28 Feb 2019, 12:42
Re: DATETIME custom Field type + Search on custom fields
To the exclusion of everything else because of your frameworks and code. I am trying it in Mantis 1.1.6 anyway there are a couple of issues: I've spread out a custom field of datetime style, I set it up when enumerating limitation yet Mantis would not retailer the regard. I for the most part see that zone empty. What I am missing?
Re: DATETIME custom Field type + Search on custom fields
Anyone got to work with 2.21 version?
I am still struggling.... help is really appreciated.
Thanks in advanced.
I am still struggling.... help is really appreciated.
Thanks in advanced.
Re: DATETIME custom Field type + Search on custom fields
Hi,
I was wandering if anyone has an update for Mantis version 2.21.1.
I have implemented the code above from Cecille and it seems to work except when entering '0' for hours and minutes.
When entering a '0', the complete custom field won't be saved and becomes blank after submitting.
Hopefully anyone has a solution.
thx.
Marnix
I was wandering if anyone has an update for Mantis version 2.21.1.
I have implemented the code above from Cecille and it seems to work except when entering '0' for hours and minutes.
When entering a '0', the complete custom field won't be saved and becomes blank after submitting.
Hopefully anyone has a solution.
thx.
Marnix
Re: DATETIME custom Field type + Search on custom fields
Hi Is there any one who know how to add DATETIME custom field in Mantis release 1.2.11?
I have tried following the procedure but switch conditions are no longer applicable.
I have tried following the procedure but switch conditions are no longer applicable.
Re: DATETIME custom Field type + Search on custom fields
I have this functionality almost to work under 2.22.
Only when i submit a new ticket and i leave the hours en minutes field '0' (default) the custom_field is not saved at all in de DB.
The custom_field is only saved in de DB when i change the field to another time without an '0'. Only then it is saved in the DB.
The strange thing is, that this issue doesn't apply when i try to update/edit an existing ticket. Even when the field 'datetime' is empty in the first place, the functionality works perfectly.
Any help is appreciated. Thx.
Only when i submit a new ticket and i leave the hours en minutes field '0' (default) the custom_field is not saved at all in de DB.
The custom_field is only saved in de DB when i change the field to another time without an '0'. Only then it is saved in the DB.
The strange thing is, that this issue doesn't apply when i try to update/edit an existing ticket. Even when the field 'datetime' is empty in the first place, the functionality works perfectly.
Any help is appreciated. Thx.