This message and its attachments are intended for the exclusive use of the addressee(s) stated above and contains privileged and confidential information. If you have received this message in error, you are on notice of its privileged and confidential status and bound to keep the information in the message and attachments confidential. Please notify the sender immediately and delete this message from your system, making no copy of it. --
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/57bd4b22-5854-477c-bcb4-970fa22983f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Il giorno 16 lug 2018, alle ore 23:01, Pierre-Alexandre Meyer <pie...@kill-bill.org> ha scritto:At a high level, the timezone is used for converting a local date into a date time and vice versa (http://docs.killbill.io/0.20/invoice_subsystem.html#_reference_time_and_fixed_offset_timezone).There is significant risk in changing the timezone directly in the DB. Besides "harmless" side effects (e.g. the BCD in the account timezone would shift by a day), there could be more serious ones in the invoicing subsystem (maybe periods double billed or unnecessary repairs if the system gets confused by DST gaps).If you are already in production, why do you need to change it? Does your application need that timezone information or do you need Kill Bill to change when invoicing happens? If it's for the former, I would suggest to use a custom field on the account instead.
If you do decide to go ahead and change it, export a few accounts in a test environment and verify invoice generation over a long period (e.g. a year), to make sure there are no side effects.
Regarding notifications, the search_key1 column is the account record_id.
I’ll try. Should I change the clock a month at a time, or can I set it directly one year ahead?
Well, not much, ~3k, but we have metadata in our application DB referring them, so recreating is a no-go, I guess (all ids would change). Unless there is a transparent/clever way to do it.
BTW, the issue has just been put on hold, as it seems not so critical a 5h difference in billing time. Maybe there is no need to intervene. But IMO the scenario is still interesting to understand how Kill Bill works… :)
One other experiment you could try is to upgrade to 0.20.0, change the account reference time in the database (shift by 5 hours) and restart Kill Bill. This might just do the trick (for subsequent invoices, not the very next one though). To be tested…