diff --git a/config/default/forms/app/death_report.xlsx b/config/default/forms/app/death_report.xlsx
index c9f08d4233b..b51bd18a1ad 100644
Binary files a/config/default/forms/app/death_report.xlsx and b/config/default/forms/app/death_report.xlsx differ
diff --git a/config/default/forms/app/death_report.xml b/config/default/forms/app/death_report.xml
index 1445c4d2b4b..a156627ad94 100644
--- a/config/default/forms/app/death_report.xml
+++ b/config/default/forms/app/death_report.xml
@@ -88,7 +88,7 @@ Date of Death: <
-
+
@@ -182,8 +182,7 @@ Date of Death: <
-
+
diff --git a/config/default/forms/app/delivery.xlsx b/config/default/forms/app/delivery.xlsx
index 100c4955bec..baa99fc46de 100644
Binary files a/config/default/forms/app/delivery.xlsx and b/config/default/forms/app/delivery.xlsx differ
diff --git a/config/default/forms/app/delivery.xml b/config/default/forms/app/delivery.xml
index 66670ee1b1d..a7bfb6a352f 100644
--- a/config/default/forms/app/delivery.xml
+++ b/config/default/forms/app/delivery.xml
@@ -795,7 +795,7 @@
-
+
@@ -1361,7 +1361,7 @@
-
+
@@ -1377,7 +1377,7 @@ selected(../vaginal_bleeding, 'yes') or
selected(../vaginal_discharge, 'yes') or
selected(../convulsion, 'yes'), 'yes', 'no')"/>
-
+
@@ -1403,7 +1403,7 @@ selected(../convulsion, 'yes'), 'yes', 'no')"/>
-
+
@@ -1411,7 +1411,7 @@ selected(../convulsion, 'yes'), 'yes', 'no')"/>
-
+
@@ -1464,7 +1464,7 @@ selected(../blue_skin, 'yes'), 'yes', 'no')"/>
-
+
@@ -1496,7 +1496,7 @@ selected(../condition/woman_outcome, 'alive_unwell') or
-
+
diff --git a/config/default/forms/app/pnc_danger_sign_follow_up_baby.xlsx b/config/default/forms/app/pnc_danger_sign_follow_up_baby.xlsx
index b75b54b5d9f..394b9f515b4 100644
Binary files a/config/default/forms/app/pnc_danger_sign_follow_up_baby.xlsx and b/config/default/forms/app/pnc_danger_sign_follow_up_baby.xlsx differ
diff --git a/config/default/forms/app/pnc_danger_sign_follow_up_baby.xml b/config/default/forms/app/pnc_danger_sign_follow_up_baby.xml
index 9e0eca73214..9bf4c528864 100644
--- a/config/default/forms/app/pnc_danger_sign_follow_up_baby.xml
+++ b/config/default/forms/app/pnc_danger_sign_follow_up_baby.xml
@@ -158,7 +158,7 @@
-
+
@@ -258,7 +258,7 @@
-
+
diff --git a/config/default/forms/app/pnc_danger_sign_follow_up_mother.xlsx b/config/default/forms/app/pnc_danger_sign_follow_up_mother.xlsx
index 7145c3163a7..366c5ec315b 100644
Binary files a/config/default/forms/app/pnc_danger_sign_follow_up_mother.xlsx and b/config/default/forms/app/pnc_danger_sign_follow_up_mother.xlsx differ
diff --git a/config/default/forms/app/pnc_danger_sign_follow_up_mother.xml b/config/default/forms/app/pnc_danger_sign_follow_up_mother.xml
index 0bddb37a649..0b2c732d8fd 100644
--- a/config/default/forms/app/pnc_danger_sign_follow_up_mother.xml
+++ b/config/default/forms/app/pnc_danger_sign_follow_up_mother.xml
@@ -128,7 +128,7 @@
-
+
@@ -230,7 +230,7 @@
-
+
diff --git a/config/default/forms/app/pregnancy.xlsx b/config/default/forms/app/pregnancy.xlsx
index 7d887b16fef..40f15a29e25 100644
Binary files a/config/default/forms/app/pregnancy.xlsx and b/config/default/forms/app/pregnancy.xlsx differ
diff --git a/config/default/forms/app/pregnancy.xml b/config/default/forms/app/pregnancy.xml
index 331b1c8dee0..ceb9a8de5ab 100644
--- a/config/default/forms/app/pregnancy.xml
+++ b/config/default/forms/app/pregnancy.xml
@@ -668,7 +668,7 @@
-
+
@@ -995,20 +995,20 @@
-
+
-
+
-
+
@@ -1021,8 +1021,8 @@ or selected(../../method_approx/lmp_approx, 'approx_months')"/>
@@ -1037,16 +1037,16 @@ if(selected(../register_method/lmp_method, 'method_edd'), date-time(decimal-date
-
+
-
+
-
+
@@ -1176,14 +1176,14 @@ selected(../iron_folate/iron_folate_daily, 'no')), 'yes', 'no')"/>
../next_visit_weeks < 40 and
../next_visit_weeks > 0"/>
-
diff --git a/config/default/forms/app/pregnancy_danger_sign.xlsx b/config/default/forms/app/pregnancy_danger_sign.xlsx
index 48693683d07..d710ddd3c5f 100644
Binary files a/config/default/forms/app/pregnancy_danger_sign.xlsx and b/config/default/forms/app/pregnancy_danger_sign.xlsx differ
diff --git a/config/default/forms/app/pregnancy_danger_sign.xml b/config/default/forms/app/pregnancy_danger_sign.xml
index 2695d4ce66c..77e55b1d6d2 100644
--- a/config/default/forms/app/pregnancy_danger_sign.xml
+++ b/config/default/forms/app/pregnancy_danger_sign.xml
@@ -167,7 +167,7 @@
-
+
@@ -277,7 +277,7 @@
-
+
diff --git a/config/default/forms/app/pregnancy_danger_sign_follow_up.xlsx b/config/default/forms/app/pregnancy_danger_sign_follow_up.xlsx
index 4457023dc62..08325c685ce 100644
Binary files a/config/default/forms/app/pregnancy_danger_sign_follow_up.xlsx and b/config/default/forms/app/pregnancy_danger_sign_follow_up.xlsx differ
diff --git a/config/default/forms/app/pregnancy_danger_sign_follow_up.xml b/config/default/forms/app/pregnancy_danger_sign_follow_up.xml
index 5aa7554c6ec..78d36a5ed0d 100644
--- a/config/default/forms/app/pregnancy_danger_sign_follow_up.xml
+++ b/config/default/forms/app/pregnancy_danger_sign_follow_up.xml
@@ -179,7 +179,7 @@
-
+
@@ -292,7 +292,7 @@
-
+
diff --git a/config/default/forms/app/pregnancy_home_visit.xlsx b/config/default/forms/app/pregnancy_home_visit.xlsx
index 668d3133f5d..211d898edb8 100644
Binary files a/config/default/forms/app/pregnancy_home_visit.xlsx and b/config/default/forms/app/pregnancy_home_visit.xlsx differ
diff --git a/config/default/forms/app/pregnancy_home_visit.xml b/config/default/forms/app/pregnancy_home_visit.xml
index 5c5db5c2b8a..eb7bcac4f04 100644
--- a/config/default/forms/app/pregnancy_home_visit.xml
+++ b/config/default/forms/app/pregnancy_home_visit.xml
@@ -755,7 +755,7 @@
-
+
@@ -1241,14 +1241,14 @@
-
+
-
+
@@ -1263,7 +1263,7 @@
+floor((decimal-date-time(today()) - decimal-date-time(../lmp_date_8601_ctx)) div 7))"/>
@@ -1273,9 +1273,9 @@ floor((floor(decimal-date-time(today())) - decimal-date-time(../lmp_date_8601_ct
-
+
-
+
selected(../pregnancy_summary/g_age_correct, 'no')"/>
-
+
@@ -1303,7 +1303,7 @@ selected(../pregnancy_summary/g_age_correct, 'no')"/>
@@ -1316,13 +1316,13 @@ if(selected(../update_method/g_age_update_method, 'method_edd'), date-time(decim
-
+
-
+
@@ -1348,8 +1348,8 @@ selected(../new_risks, 'diabetes') or
selected(../additional_risk_check, 'yes')
, 'yes', 'no')"/>
-
+
@@ -1468,14 +1468,14 @@ selected(../../safe_pregnancy_practices/iron_folate/iron_folate_daily, 'no')"/>
-
diff --git a/config/default/forms/contact/PLACE_TYPE-create.xlsx b/config/default/forms/contact/PLACE_TYPE-create.xlsx
index 77e8474e96d..5a2b509cdb2 100644
Binary files a/config/default/forms/contact/PLACE_TYPE-create.xlsx and b/config/default/forms/contact/PLACE_TYPE-create.xlsx differ
diff --git a/config/default/forms/contact/clinic-create.xml b/config/default/forms/contact/clinic-create.xml
index 686ae58e76d..ef4b7534b66 100644
--- a/config/default/forms/contact/clinic-create.xml
+++ b/config/default/forms/contact/clinic-create.xml
@@ -915,7 +915,7 @@ DOB ISO:
-
+
@@ -1017,7 +1017,7 @@ DOB ISO:
-
+
diff --git a/config/default/forms/contact/district_hospital-create.xml b/config/default/forms/contact/district_hospital-create.xml
index 0938b12e88b..71a5b555e5d 100644
--- a/config/default/forms/contact/district_hospital-create.xml
+++ b/config/default/forms/contact/district_hospital-create.xml
@@ -915,7 +915,7 @@ DOB ISO:
-
+
@@ -1017,7 +1017,7 @@ DOB ISO:
-
+
diff --git a/config/default/forms/contact/health_center-create.xml b/config/default/forms/contact/health_center-create.xml
index 1ba2bde94e8..496102b5014 100644
--- a/config/default/forms/contact/health_center-create.xml
+++ b/config/default/forms/contact/health_center-create.xml
@@ -915,7 +915,7 @@ DOB ISO:
-
+
@@ -1017,7 +1017,7 @@ DOB ISO:
-
+
diff --git a/config/default/forms/contact/person-create.xlsx b/config/default/forms/contact/person-create.xlsx
index 6d6f5ea9af8..ff9c1030233 100644
Binary files a/config/default/forms/contact/person-create.xlsx and b/config/default/forms/contact/person-create.xlsx differ
diff --git a/config/default/forms/contact/person-create.xml b/config/default/forms/contact/person-create.xml
index 93f4eb395b6..10d20b36a41 100644
--- a/config/default/forms/contact/person-create.xml
+++ b/config/default/forms/contact/person-create.xml
@@ -807,7 +807,7 @@ DOB ISO:
-
+
@@ -881,7 +881,7 @@ DOB ISO:
-
+
diff --git a/config/default/forms/contact/person-edit.xlsx b/config/default/forms/contact/person-edit.xlsx
index 2a0ebcd038a..45667c39ad7 100644
Binary files a/config/default/forms/contact/person-edit.xlsx and b/config/default/forms/contact/person-edit.xlsx differ
diff --git a/config/default/forms/contact/person-edit.xml b/config/default/forms/contact/person-edit.xml
index f1f52514df9..3f1389dfb8f 100644
--- a/config/default/forms/contact/person-edit.xml
+++ b/config/default/forms/contact/person-edit.xml
@@ -933,7 +933,7 @@ DOB ISO:
-
+
@@ -1024,7 +1024,7 @@ DOB ISO:
-
+
diff --git a/config/standard/forms/app/death_confirmation.xlsx b/config/standard/forms/app/death_confirmation.xlsx
index a0c0f43f898..39d320005c8 100644
Binary files a/config/standard/forms/app/death_confirmation.xlsx and b/config/standard/forms/app/death_confirmation.xlsx differ
diff --git a/config/standard/forms/app/death_confirmation.xml b/config/standard/forms/app/death_confirmation.xml
index 218c09c5c37..5881e5713d6 100644
--- a/config/standard/forms/app/death_confirmation.xml
+++ b/config/standard/forms/app/death_confirmation.xml
@@ -327,7 +327,7 @@ Klik di sini untuk menelepon: ]
-
+
@@ -391,7 +391,7 @@ Klik di sini untuk menelepon: ]
-
+
diff --git a/config/standard/forms/app/delivery.xlsx b/config/standard/forms/app/delivery.xlsx
index e0509e1655f..a1fd0664b15 100644
Binary files a/config/standard/forms/app/delivery.xlsx and b/config/standard/forms/app/delivery.xlsx differ
diff --git a/config/standard/forms/app/delivery.xml b/config/standard/forms/app/delivery.xml
index 137e343caff..e9ad45e410b 100644
--- a/config/standard/forms/app/delivery.xml
+++ b/config/standard/forms/app/delivery.xml
@@ -1428,7 +1428,7 @@ ID:
-
+
@@ -1553,7 +1553,7 @@ ID:
-
+
-
+
@@ -2221,7 +2221,7 @@ Tanggal taksiran persalinan:
-
+
diff --git a/config/standard/forms/collect/child.xlsx b/config/standard/forms/collect/child.xlsx
index bc07aa4e80f..05022c23352 100644
Binary files a/config/standard/forms/collect/child.xlsx and b/config/standard/forms/collect/child.xlsx differ
diff --git a/config/standard/forms/collect/child.xml b/config/standard/forms/collect/child.xml
index a54760648b3..ff7491255d1 100644
--- a/config/standard/forms/collect/child.xml
+++ b/config/standard/forms/collect/child.xml
@@ -106,7 +106,7 @@
-
+
@@ -120,7 +120,7 @@
-
+
diff --git a/config/standard/forms/contact/person-create.xlsx b/config/standard/forms/contact/person-create.xlsx
index 238d35766f4..a95996e1b03 100644
Binary files a/config/standard/forms/contact/person-create.xlsx and b/config/standard/forms/contact/person-create.xlsx differ
diff --git a/config/standard/forms/contact/person-create.xml b/config/standard/forms/contact/person-create.xml
index f274a7cd0e2..d7d91c608c7 100644
--- a/config/standard/forms/contact/person-create.xml
+++ b/config/standard/forms/contact/person-create.xml
@@ -576,7 +576,7 @@
-
+
@@ -626,7 +626,7 @@
-
+
@@ -634,7 +634,7 @@
-
+
diff --git a/config/standard/forms/contact/person-edit.xlsx b/config/standard/forms/contact/person-edit.xlsx
index 9760c229068..c4c06a89c85 100644
Binary files a/config/standard/forms/contact/person-edit.xlsx and b/config/standard/forms/contact/person-edit.xlsx differ
diff --git a/config/standard/forms/contact/person-edit.xml b/config/standard/forms/contact/person-edit.xml
index c3cd2d852aa..410592b1a55 100644
--- a/config/standard/forms/contact/person-edit.xml
+++ b/config/standard/forms/contact/person-edit.xml
@@ -666,7 +666,7 @@
-
+
@@ -741,7 +741,7 @@
-
+
diff --git a/webapp/src/js/enketo/medic-xpath-extensions.js b/webapp/src/js/enketo/medic-xpath-extensions.js
index 7a109c7ff90..f76227b35af 100644
--- a/webapp/src/js/enketo/medic-xpath-extensions.js
+++ b/webapp/src/js/enketo/medic-xpath-extensions.js
@@ -153,9 +153,6 @@ module.exports = {
},
func: {
'add-date': addDate,
- today: function() {
- return XPR.date(new Date());
- },
'z-score': function() {
const args = Array.from(arguments).map(function(arg) {
return getValue(arg);
diff --git a/webapp/tests/karma/js/enketo/medic-xpath-extensions.spec.ts b/webapp/tests/karma/js/enketo/medic-xpath-extensions.spec.ts
index d043dc9e6e9..f4d451e1cd7 100644
--- a/webapp/tests/karma/js/enketo/medic-xpath-extensions.spec.ts
+++ b/webapp/tests/karma/js/enketo/medic-xpath-extensions.spec.ts
@@ -10,7 +10,6 @@ describe('Medic XPath Extensions', () => {
expect(medicXpathExtensions.init).to.be.a('function');
expect(medicXpathExtensions.func).to.not.be.undefined;
- expect(medicXpathExtensions.func.today).to.be.a('function');
expect(medicXpathExtensions.func['z-score']).to.be.a('function');
expect(medicXpathExtensions.func['parse-timestamp-to-date']).to.be.a('function');
diff --git a/webapp/tests/mocha/unit/enketo/medic-xpath-extensions.spec.js b/webapp/tests/mocha/unit/enketo/medic-xpath-extensions.spec.js
index 048f81423eb..5715b5da8a3 100644
--- a/webapp/tests/mocha/unit/enketo/medic-xpath-extensions.spec.js
+++ b/webapp/tests/mocha/unit/enketo/medic-xpath-extensions.spec.js
@@ -14,16 +14,6 @@ describe('medic-xpath-extensions', function() {
done();
});
- describe('today()', function() {
- it('returns a result of type `date`', function() {
- assert.equal(func.today().t, 'date');
- });
-
- it('returns a value which is instance of Date', function() {
- assert.ok(func.today().v instanceof Date);
- });
- });
-
describe('getTimezoneOffsetAsTime()', function() {
it('returns the time zone offset in hours when given a time zone difference in minutes', function() {
Date.prototype.getTimezoneOffset = () => -60;