Merge pull request #14 from ledgersmb/1.4

1.4, bringing it up to date
Fix #1166: Dates incorrectly showed in the web output (correctly in DB).
(grafted from b6eea202e7e1c7b42436a8b56cc62f9919e61706)

--HG--
extra : source : b6eea202e7e1c7b42436a8b56cc62f9919e61706
Merge pull request #102 from ehuelsmann/1.4-ticket-1166

1.4 ticket 1166
Marking 1.4 as a long-term branch

--HG--
branch : 1.4
Merging COGS type fix from master

--HG--
branch : 1.4
Adding in missing pg-database.sql fix

--HG--
branch : 1.4
Merge pull request #104 from einhverfr/1.4

Merging in fix for cogs types from master.
Follow-up to fix for ticket #1166 (js fix)
(grafted from 8014848835e0c0630f3822a11da300a308b5ea5a)

--HG--
extra : source : 8014848835e0c0630f3822a11da300a308b5ea5a
Merge pull request #107 from ehuelsmann/1.4-ticket-1166

Follow-up to fix for ticket #1166 (js fix)
Merge pull request #24 from ledgersmb/1.4

sync over 1.4 branch