The 20-year-old was jailed for 18 months but told he could be freed for time served awaiting the hearing.