As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

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,896
    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