Article Details
Id:15446
Product:finPOWER Connect
Type:NEW
Version:3.01.05
Opened:21/08/2018
Closed:23/08/2018
Released:27/08/2018
Job: J021222

HTML Widgets; New functions to format dates and times displaying UTC values

When using widget.FormatDateForGrid, the UTC values are shown since our guidelines are to always use UTC and display the UTC values to avoid time zone issues.

The widget.UI.DateBox control also displays UTC values.

However, widget.FormatDate and widget.FormatDateTime showed the local values; not the UTC values. This could lead to discrepencies when formatting text for display as opposed to letting the controls (DateBox and Grid) handle the formatting.

The following functions have been added to tidy this area up:

  • FormatUtcDate
  • FormatUtcDateTime