Fixed wrong datetime-settings in fixtures.

This commit is contained in:
Benjamin Meichsner 2009-02-06 19:30:35 +01:00
parent 0a87294ed4
commit 85eb27079f
4 changed files with 10 additions and 3 deletions

View file

@ -19,24 +19,28 @@ banana1:
price: 1.45
tax: 7.0
unit_quantity: 18
created_at: <%= Time.now.to_s(:db) %>
banana2:
article: banana
price: 1.35
tax: 7.0
unit_quantity: 18
created_at: <%= Time.now.to_s(:db) %>
kiwi1:
article: kiwi
price: 1.11
tax: 7.0
unit_quantity: 10
created_at: <%= Time.now.to_s(:db) %>
potatoe1:
article: potatoe
price: 1.33
tax: 7.0
unit_quantity: 25
created_at: <%= Time.now.to_s(:db) %>
applejuice1:
article: applejuice
@ -44,3 +48,4 @@ applejuice1:
tax: 7.0
unit_quantity: 1
deposit: 0.15
created_at: <%= Time.now.to_s(:db) %>

View file

@ -17,10 +17,10 @@ bananas1:
amount: 0.00
note: "Deposit for 3 people: 15,-€"
user: admin
created_on: <%= 2.weeks.ago.strftime("%d.%m.%Y") %>
created_on: <%= 2.weeks.ago.to_s(:db) %>
bananas2:
ordergroup: bananas
amount: 100.00
note: Paying in from <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
created_on: <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
created_on: <%= 1.weeks.ago.to_s(:db) %>

View file

@ -40,7 +40,7 @@ bananas:
type: Ordergroup
name: Banangroup
account_balance: 100.00
account_updated: <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
account_updated: <%= 1.weeks.ago.to_s(:db) %>
contact_person: Tim
contact_phone: 030 123132456
contact_address: Waldermarstrasse 43, 10988 Berlin

View file

@ -25,6 +25,7 @@ admin:
email: admin@foo.test
password_hash: a3c77e64311ad37161e582b28737d1e420962538
password_salt: LNpP/lca
created_on: <%= 1.day.ago.to_s(:db) %>
test:
nick: test
first_name: Tim
@ -32,3 +33,4 @@ test:
email: test@foo.test
password_hash: 5549cd54032a72435037893b02d95ebef13cdc57
password_salt: DxnbIF1h
created_on: <%= Time.now.to_s(:db) %>