Skip to content

Commit c29f15a

Browse files
committed
Add README comment about File Creation Date timezones in file header
We had a bank we work with get persnickety about the File Creation Date being a Saturday for files sent to them on Friday nights This seemed like it was worth a README warning but not a breaking change to the default value, but let me know if you can think of any code changes to accomodate this for everyone! We ended up using in our rails codebase that uses this gem
1 parent 4b9e818 commit c29f15a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#ACH
1+
# ACH
22

33
[![Build Status](https://travis-ci.org/jm81/ach.svg?branch=master)](https://travis-ci.org/jm81/ach)
44

55
ach is a Ruby helper for builder ACH files. In particular, it helps with field
66
order and alignment, and adds padding lines to end of file.
77

8-
**This library has only been used in one production application and for very
8+
**This library has only been used in two production applications and for very
99
limited purposes. Please test thoroughly before using in a production
1010
environment.**
1111

1212
See [ACH::Builder](http://search.cpan.org/~tkeefer/ACH-Builder-0.03/lib/ACH/Builder.pm)
1313
for a similar Perl library
1414

15-
##Example
15+
## Example
1616

1717
You should consult a copy of the [ACH Rules](http://www.nacha.org) for details
1818
on individual fields. You can probably obtain a copy from your bank.
@@ -30,6 +30,11 @@ fh.immediate_destination = '000000000'
3030
fh.immediate_destination_name = 'BANK NAME'
3131
fh.immediate_origin = '000000000'
3232
fh.immediate_origin_name = 'BANK NAME'
33+
# Optional - This value is used in the File Creation Date/Time attributes - if excluded will default to Time.now
34+
# Note that you may wish to modify the time zone here if your environment has a different time zone than the banks
35+
# For example if your server is in UTC and the bank's is in US/Eastern, any files sent after 8pm Eastern/Midnight UTC
36+
# would have a File Creation Date of the next day from the bank's perspective
37+
fh.transmission_datetime = Time.now
3338

3439
# Batch
3540
batch = ACH::Batch.new
@@ -73,6 +78,6 @@ ach.batches.first.entries.first.addenda.first.payment_data
7378

7479
**Note:** When adding an amount to your ach file, it needs to be in cents. So you'll want to multiply any dollar amounts by 100
7580

76-
##Copyright
81+
## Copyright
7782

7883
Copyright (c) 2008-2009 Jared E Morgan, released under the MIT license

0 commit comments

Comments
 (0)