Fix sample code

add %O to display era