• Resolved plantiimanagedev

    (@plantiimanagedev)


    How do I decode “delivery times”?
    I know the first number is the vendor number but cant seem to figure out how to decode the second number to date/time… “1604505826”

    ‘key’: ‘_wcfmd_delvery_times’,
    ‘value’: { ‘189905196’: ‘1604505826’,
    ‘189905207’: ‘1603989226’,
    ‘189905348’: ‘1604162026’,
    ‘189905435’: ‘1604075626’}},

Viewing 1 replies (of 1 total)
  • Plugin Author WC Lovers

    (@wclovers)

    how to decode the second number to date/time… “1604505826”

    – It’s in timestamp format. You may decode this using PHP “date” function.

    We format it like this –

    $time_format = wcfm_delivery_time_display_format( $vendor_id );
    echo date_i18n( $time_format, $wcfmd_delvery_time );
Viewing 1 replies (of 1 total)
  • The topic ‘How to decode “delivery times”’ is closed to new replies.