Menu

#2645 text_plain__dateformat missinterpreting

2.11.4
fixed
None
5
2013-06-11
2008-02-27
isy
No

The PMA_transformation_text_plain__dateformat didn't interprete some unix time stamps correct.
e.g. the timestamp 1202137415
will be shown as 16-12-2012 02:15
but should be 04-02-2008 16:08

The problem may be in the line 37
if (preg_match('/^(\d{2}){3,7}$/', $buffer)) {

but i didn't got a solution ;-(

Discussion

  • isy

    isy - 2008-02-27

    Logged In: YES
    user_id=1203504
    Originator: YES

    There is no option to automatically determin the time format correctly.
    If I got a timestamp in the format:
    1202131215 it is not possible to detect if this is a Timestamp in ascii format (e.g. yymmddHHMM) or an unix timestamp.
    Therefore you must define an extra parameter for the PMA_transformation_text_plain__dateformat function.
    e.g. extend the options with a fourth parameter which define the timestamp as ascii formated or as an unix integer timestamp (as default).

     
  • Marc Delisle

    Marc Delisle - 2008-02-28
    • assigned_to: nobody --> lem9
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed --> fixed