This is just some static backup of the original site, don't expect every link to work!

Changeset 190c29


Ignore:
Timestamp:
Aug 25, 2018, 11:54:31 AM (4 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
8518b6
Parents:
4556a9
Message:

added stftime (replacement for dateObj.toLocaleFormat)

Location:
modules
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • modules/vI_smartIdentityCollection.js

    r4556a9 r190c29  
    2929Components.utils.import("resource://v_identity/vI_rdfDatasource.js");
    3030Components.utils.import("resource://v_identity/vI_prefs.js");
     31
     32Components.utils.import("resource://v_identity/strftime/strftime.js");
    3133
    3234let Log = setupLogging("virtualIdentity.smartIdentityCollection");
     
    8284    var dateObj = new Date();
    8385    var dateString = "";
    84     if (formatString == "") dateString = parseInt(dateObj.getTime() / 1000);
     86    if (formatString == "")
     87      dateString = parseInt(dateObj.getTime() / 1000);
    8588    else try { //   you never know what the formatString will be...
    86       dateString = dateObj.toLocaleFormat(formatString).replace(/\s+|[\x00-\x2a]|\x2c|\x2f|[\x3a-\x40]|[\x5b-\x5d]|\x60|\x7c|[\x7f-\xff]/g, "_");
     89      dateString = strftime(formatString, dateObj);
     90//       dateString = dateObj.toLocaleFormat(formatString).replace(/\s+|[\x00-\x2a]|\x2c|\x2f|[\x3a-\x40]|[\x5b-\x5d]|\x60|\x7c|[\x7f-\xff]/g, "_");
    8791    } catch (e) {};
    8892
Note: See TracChangeset for help on using the changeset viewer.