We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Change the default expiration time

How Do I?

cooperdjm72's avatar
cooperdjm72
11 posts
5 years ago
cooperdjm72's avatar cooperdjm72

I have an channel form where guest can enter an entry date and expiration date. Which for examples is save in the entry as:

Entry date 5/7/2020 12:00 AM

Expiration date 5/10/2020 12:00 AM

I would like to have the default time for the expiration date to be 11:59PM, How do I do this? Can i do it in form or is there a config override for this.

Many Thanks

       
Tom Jaeger's avatar
Tom Jaeger
228 posts
5 years ago
Tom Jaeger's avatar Tom Jaeger

Just to confirm, your looking to set just the time (not the date as well)? I would take a peek at the following. My gut reaction is that you may have to do this after a user selects an expiration date via JS.

https://docs.expressionengine.com/latest/channels/channel-form/inputs.html#expiration-date

       
cooperdjm72's avatar
cooperdjm72
11 posts
5 years ago
cooperdjm72's avatar cooperdjm72

Yes thats correct, the time defaults to 12:00 AM day of, so if i want it to expire end of day say 6:00pm I have to figure out how to do it manually.

       
Tom Jaeger's avatar
Tom Jaeger
228 posts
5 years ago
Tom Jaeger's avatar Tom Jaeger

Yeah, unfortunately I believe you’ll have to do that with JS. I could see us adding this to the core though. Any chance you would be willing to open a feature request?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.