DATETIME custom Field type + Search on custom fields

Post about your customizations to share with others.

Moderators: Contributor, Developer

tetsunami
Posts: 26
Joined: Apr 21, 2010 9:45 am

Re: DATETIME custom Field type + Search on custom fields

Post by tetsunami » Jun 25, 2010 10:26 am

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 :? :?:

atrol
Site Admin
Posts: 7526
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: DATETIME custom Field type + Search on custom fields

Post by atrol » Jul 01, 2010 5:06 pm

tetsunami wrote:really?? im only found the date custom field
but the date and time wasnt there
You are right,
I should not try to give answers if it's time to go to bed :oops:
Please use Search before posting and read the Manual

robertbics
Posts: 14
Joined: Feb 17, 2010 2:02 am

Re: DATETIME custom Field type

Post by robertbics » Jun 13, 2011 6:04 am

Please help me


I would like to add a custom field with Date and time please help me

zcorics
Posts: 1
Joined: Aug 01, 2012 1:50 am

Re: DATETIME custom Field type + Search on custom fields

Post by zcorics » Aug 01, 2012 1:54 am

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.

cecile.fecherolle
Posts: 1
Joined: Sep 10, 2018 10:50 am

Re: DATETIME custom Field type + Search on custom fields

Post by cecile.fecherolle » Sep 10, 2018 11:04 am

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 :D
Attachments
mantis_datetime.txt
(11.39 KiB) Downloaded 49 times

jorgepp
Posts: 1
Joined: Nov 16, 2018 7:14 am

Re: DATETIME custom Field type + Search on custom fields

Post by jorgepp » Nov 16, 2018 7:20 am

Could you perhaps post the code for searching on Custom Fields??

Thanks!

NylaCoppola
Posts: 1
Joined: Feb 28, 2019 7:42 am

Re: DATETIME custom Field type + Search on custom fields

Post by NylaCoppola » Mar 05, 2019 7:02 am

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?

DaltonIvory
Posts: 1
Joined: Mar 19, 2019 3:18 am

Re: DATETIME custom Field type + Search on custom fields

Post by DaltonIvory » Mar 19, 2019 6:28 am

In my underlying code I had the optionally available as soon as-over with void resolution " like date, month and yr. That is the rationale in the back of that +1, after I ousted the precept void determination anyway I fail to reset the circle list. Much gratitude to you in your inspiration!

Post Reply