# HR-BR-2

Source: https://xmlvalid.com/rules/HR-BR-2

> Račun mora imati vrijeme izdavanja računa (HR-BT-2). Vrijeme se upisuje u formatu hh:mm:ss

- Level: error
- Rule sets: Croatian eRačun rules (UBL) 13.03.2026
- Context: `ubl-creditnote:CreditNote | ubl-invoice:Invoice`
- Test: `cbc:IssueTime and matches(cbc:IssueTime, '^[0-9]{2}:[0-9]{2}:[0-9]{2}$')`

In English: The invoice must have an issue time (HR-BT-2), written as hh:mm:ss.

## Why it fails

- `cbc:IssueTime` is missing; it is optional in EN 16931 and required in Croatia.
- The time has a time zone or fractional seconds (`10:15:00+01:00`, `10:15:00.000`); the rule accepts exactly `hh:mm:ss`.

## How to fix it

- Add `<cbc:IssueTime>10:15:00</cbc:IssueTime>` after `cbc:IssueDate`, without a time zone.

Validate a document against these rules: https://xmlvalid.com/validate
