Title: Correct Date and time
Last modified: August 21, 2016

---

# Correct Date and time

 *  [madnhain](https://wordpress.org/support/users/madnhain/)
 * (@madnhain)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/correct-date-and-time/)
 * I’ve set up the date and time correctly in the WP general settings, but every
   Invoice that I send has an incorrect date and time. As far as I can tell, WP-
   Invoice does not have its own separate time settings. (or does it?)
    Everywhere
   else on the site has the correct time, it just seems like the Wp-Invoice that
   is having this issue.
 * Any Thoughts? Thanks!
 * [http://wordpress.org/extend/plugins/wp-invoice/](http://wordpress.org/extend/plugins/wp-invoice/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Contributor [Anton Korotkoff](https://wordpress.org/support/users/anton-korotkoff/)
 * (@anton-korotkoff)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807805)
 * Hello madnhain,
 * we will test that and answer here soon.
 * Thank you.
 *  Plugin Contributor [Anton Korotkoff](https://wordpress.org/support/users/anton-korotkoff/)
 * (@anton-korotkoff)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807840)
 * Hello again madnhain,
 * what date are you talking about? Could you please provide some data on how to
   replicate the issue?
 * Thanks.
 *  Thread Starter [madnhain](https://wordpress.org/support/users/madnhain/)
 * (@madnhain)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807841)
 * Certainly!
    From the WP Dashboard, Invoice > Add new invoice for testing reasons,
   I entered the time of creation into the name and body fields Save and Send notification
 * Then, View All invoices, select the one you just created
    Inside the Top Area“
   Invoice Status and History”
 * > 11:43 am June 6, 2013 Notification Sent (New Invoice) to [xxx.xxx@gmail.com](https://wordpress.org/support/topic/correct-date-and-time/xxx.xxx@gmail.com?output_format=md)
   > at 11:43 am June 6, 2013.
   >  11:43 am June 6, 2013 Created by admin
 * inside my body:
 * > This invoice was created @ 6:43AM June 6th, 2013
 * (I just noticed this)
    While just looking at my settings to be SURE the time 
   was set correctly, I see this:
 * > UTC time is 2013-06-06 11:57:26 Local time is 2013-06-06 6:57:26
 * So apparently Invoice is using UTC instead of Local time?
    Any thoughts on this?
   Thanks!
 *  Plugin Contributor [Anton Korotkoff](https://wordpress.org/support/users/anton-korotkoff/)
 * (@anton-korotkoff)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807842)
 * Thank you for clear explanation. I’ll let you know once we investigate this.
 *  Plugin Contributor [Anton Korotkoff](https://wordpress.org/support/users/anton-korotkoff/)
 * (@anton-korotkoff)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807843)
 * [@madnhain](https://wordpress.org/support/users/madnhain/), you are right.
 * This is a timezone issue. We are going to fix it and include into the next release.
 * Thank you.
 *  Thread Starter [madnhain](https://wordpress.org/support/users/madnhain/)
 * (@madnhain)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807844)
 * Thanks Anton! I appreciate you looking into this!
 *  Plugin Contributor [Anton Korotkoff](https://wordpress.org/support/users/anton-korotkoff/)
 * (@anton-korotkoff)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807846)
 * Thank you too for using our products.
 *  [Dan](https://wordpress.org/support/users/dan013/)
 * (@dan013)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807892)
 * Is there a special wpi function to display the date the invoice was created?
 * Using
    `the_date(get_option('date_format'))` or `the_date()` in my custom template
   shows December 13, 2012 no matter when the invoice was created.
 * Assigning a due date and using
    `wpi_invoice_due_date()` in a custom template
   displays the correct due date.
 * [Sample invoice](http://holding13.com/invoice/?invoice_id=f24644d9707cb07143276201552c1318)
   
   Sample invoice created: June 17, 2013 Due date 1 week: June 24, 2013
 * I’m using wp-invoice Version 3.08.6
 *  Plugin Contributor [Anton Korotkoff](https://wordpress.org/support/users/anton-korotkoff/)
 * (@anton-korotkoff)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807893)
 * Hello [@dan](https://wordpress.org/support/users/dan/),
 * function `the_date()` will always show you the date of the page you are using
   to display invoice.
 * Currently plugin doesn’t have template function for invoice date but you always
   can use this:
 * `echo $invoice['post_date'];`
 * It is a bit ugly but we are going to review our template function and add more
   useful ones.
 * Thank you!
 *  [Dan](https://wordpress.org/support/users/dan013/)
 * (@dan013)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807894)
 * [@anton](https://wordpress.org/support/users/anton/)
    I understand… I’m seeing
   the date December 13, 2012 because the _page_ I dedicated to display invoices
   was created on that date, nothing to do with the date the invoice was created.
 * You’re right, `echo $invoice['post_date'];` is a bit ugly.
    YYYY-MM-DD HH:MM:
   SS isn’t the format I would like to use.
 * I’ll stick to adding the date in the description section for now. Hopefully the
   date functions will be available soon. Thanks for the help and great plugin.
 *  Plugin Contributor [Anton Korotkoff](https://wordpress.org/support/users/anton-korotkoff/)
 * (@anton-korotkoff)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807895)
 * [@dan](https://wordpress.org/support/users/dan/),
 * try this temporary
 * `echo date(get_option('date_format'), strtotime( $invoice['post_date'] ));`
 *  [Dan](https://wordpress.org/support/users/dan013/)
 * (@dan013)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807896)
 * Nailed it! That’s exactly what I’m looking for. Thank you very much.
 *  Plugin Contributor [Anton Korotkoff](https://wordpress.org/support/users/anton-korotkoff/)
 * (@anton-korotkoff)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807897)
 * Good!
 * Thank you for using our product. We will improve this soon anyway.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Correct Date and time’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-invoice_c36510.svg)
 * [WP-Invoice - Web Invoice and Billing](https://wordpress.org/plugins/wp-invoice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-invoice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-invoice/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-invoice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-invoice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-invoice/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [Anton Korotkoff](https://wordpress.org/support/users/anton-korotkoff/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/correct-date-and-time/#post-3807897)
 * Status: not resolved