From 8064990a976bdc65bc798ba6aab978533485eb2d Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 12 Feb 2009 14:37:14 +0000 Subject: Made changes according to new formatlanguage attribute on metawidget. --- server/xml/macros/B.2.1.3.xml | 9 +++++++-- server/xml/macros/B.2.3.xml | 12 ++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) (limited to 'server/xml') diff --git a/server/xml/macros/B.2.1.3.xml b/server/xml/macros/B.2.1.3.xml index b279bfe..9272594 100644 --- a/server/xml/macros/B.2.1.3.xml +++ b/server/xml/macros/B.2.1.3.xml @@ -14,6 +14,10 @@ ${current_eye_disease} + + -- Set date to now if no other data available within last 24 hours. + return os.time(), os.time() - 24*60*60, 'system' + @@ -24,11 +28,12 @@ ${current_eye_disease} innerwidget="aktuelle_entry"> + formatlanguage="lua" + format="return os.date('%e. %b %Y', tonumber(getValue('date'))) .. ' - På ' .. getValue('eye')..' øje er der observeret '..getValue('observeret')..'. Symptomerne er opstået ' .. getValue('when')..' og er efterfølgende '..getValue('then')">