We're Moving to a New Support Platform – Starting June 1st!

We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.

You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.

While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.

We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.

Thanks for your continued support and trust – we’re excited to bring you an even better support experience!

Okay
  Public Ticket #1119573
colunm type format
Closed

Comments

  •  2
    xadoom86 started the conversation

    Hi,

    i need to format the type TIME for colunms to show seconds.

    f.e. now we can display the time only like "13:35". I need to display "13:35:02".

    how can I do it?

  •  1,895
    Miloš replied

    Hi xadoom86,
    Thank you for your purchase.

    Unfortunately we do not have that feature in our plugin build-in.
    But I can suggest you some workaround.

    Only case (for now) where Time with seconds  would work is to have MySQL table with data. Times will be displayed with seconds and sorting will work but editing from WP backed is not possible. You will have to edit this time values directly in database.

    Steps you need to follow to achieve this:

    Have to go in database, find table wp_options. In this table find wdtTimeFormat in option_name column and set h:i:s as option_value for this column.

    After that you have to create new MySQL table where you will place data. This table will be called "time_table" in this example, and one of the column (or more then one it depends how much time columns do you need) will be TIME type:

    Then when you created a table in database, you'll have to create wpDataTable based on time_table from database, and you can create it if you choose Add From Data Sourceand select MySQL table. Your query should be:

    SELECT * FROM time_table

    Like that you'll show time with second and will be able to sort it, but only way to edit data is directly from the database. Column type for this column should be Time in optional column setup.

    Hope this can help.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables