Javascript issue when setting an expiry date for entry If I set an expiry date for an entry I get an error on one of the last lines:

$timePicker.timepicker('setTime', Name of edit section as shown to the user*3600 + 00*60 + 00);


I've traced this back to craft/app/templates/_includes/forms/time.hml:39:

$timePicker.timepicker('setTime', {{ value|date('G') }}*3600 + {{ value|date('i') }}*60 + {{ value|date('s') }});


But I don't understand why value|date('G') returns Name of edit section as shown to the user instead of an integer.

Might also mention that this site uses Norwegian locale.
The issue here was an error in a translations file:

array(
    'some key' =&gt; 'some value',
    'key missing value',   &lt;== no value assigned to this key
    'other key' =&gt; 'other value value'
);