CMS MADE SIMPLE FORGE

LISE

 

[#11071] SelectDateTime field gets pre-filled with UTC time instead local

avatar
Created By: Joni Hasanen (hasanen)
Date Submitted: Sun Jun 26 16:07:49 -0400 2016

Assigned To: Fernando Morgado (JoMorg)
Version: 1.2.1.1
CMSMS Version: 2.1.4
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
SelectDateTime field gets pre-filled with UTC time instead local
Detailed Description:
When I select time from popup, e.g. 18.00, correct time gets filled in to field.
After save, when looping items and outputting fields, the time is 15.00 (which
is UTC time from Finland on summers).  This would be ok, but when opening item
again, pre-filled time in the field is 15.00, instead of 18.00.


History

Comments
avatar
Date: 2017-07-05 09:21
Posted By: Darren Kierman (kierweb)

Try this ...

Within modules/LISE/lib/class.lise_datetime_utils.php

Find the function 'date_to_unix_ts' and replace the whole function with ...

  public static final function date_to_unix_ts($value)

  {

    $offset = date_format(date_create($value), 'Z');
    return date_format(date_create($value), 'U') + $offset;

  }



      
avatar
Date: 2017-07-13 09:11
Posted By: Fernando Morgado (JoMorg)

I'm in the process of testing a bunch of fixes. This one is on the roadmap for
this release.
      
avatar
Date: 2017-07-14 09:13
Posted By: Fernando Morgado (JoMorg)

Implemented in SVN

      
Updates

Updated: 2017-07-16 12:56
state: Open => Closed

Updated: 2017-07-14 09:12
resolution_id: 5 => 7
severity_id: 2 => 3
assigned_to_id: 100 => 12532

Updated: 2017-07-13 09:11
resolution_id: => 5