Dotclear

Changeset 2183:f6c52cbace25


Ignore:
Timestamp:
09/29/13 12:52:20 (11 years ago)
Author:
blr21
Branch:
ticket 1469
Children:
2184:0176916f2d71, 2185:500d45d72417
Message:

ticket 1469 : date sous Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/install/index.php

    r1949 r2183  
    146146          $blog_settings->system->put('public_url',$root_url.'/public'); 
    147147          $blog_settings->system->put('themes_url',$root_url.'/themes'); 
    148           $blog_settings->system->put('date_format',__('%A, %B %e %Y')); 
     148          $formatDate = __('%A, %B %e %Y'); 
     149          if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { 
     150              $formatDate = preg_replace('#(?<!%)((?:%%)*)%e#', '\1%#d', $formatDate); 
     151          } 
     152          $blog_settings->system->put('date_format', $formatDate); 
    149153           
    150154          # Add Dotclear version 
Note: See TracChangeset for help on using the changeset viewer.

Sites map