Why is the timezone printing incorrectly on my labels?

Kristen
Kristen
  • Updated

Issue

Entity fields containing date/time information are printing in the UTC timezone, not the timezone that is selected in the "Timezone" dropdown. 

Screenshot 2024-09-09 at 3.08.14 PM.png

Environment

All environments

Cause

The "Timezone" dropdown adjusts the current_datetime, not entity fields containing date/time information. Entity fields containing date/time information are printed in UTC because the date/time value is stored in UTC in the warehouse and then converted to the users timezone in the UI, but the unaltered UTC value is passed to the printer. 

The current_datetime field will print the current date/time at the time of printing (ex: benchling.entity.current_datetime). 

 

Was this article helpful?

Have more questions? Submit a request