Apply 95a18a949a to travaux
				
					
				
			This commit is contained in:
		
							parent
							
								
									325d17b6c0
								
							
						
					
					
						commit
						917fa367cc
					
				| @ -1,9 +1,24 @@ | |||||||
| <?php | <?php | ||||||
| $this_file = basename($_SERVER["SCRIPT_FILENAME"]); | $this_file = basename($_SERVER["SCRIPT_FILENAME"]); | ||||||
| date_default_timezone_set('Europe/Paris'); | $last_rev = exec('git log -1 --pretty=format:"%H" '.$this_file); | ||||||
| $mtime =  date("d M Y H:i:s", filemtime($this_file)); | $mtime =  exec('git log -1 --pretty="format:%ct" '.$this_file); | ||||||
| $today =  date("d M Y H:i:s"); | $fmt = datefmt_create( | ||||||
| setlocale(LC_TIME, 'fr_FR.utf8','fra'); |   'fr-FR', | ||||||
|  |   IntlDateFormatter::FULL, | ||||||
|  |   IntlDateFormatter::FULL, | ||||||
|  |   'Europe/Paris', | ||||||
|  |   IntlDateFormatter::GREGORIAN, | ||||||
|  |   'd MMMM Y à HH:mm:ss O' | ||||||
|  | ); | ||||||
|  | $today =  time(); | ||||||
|  | $fmt_today = datefmt_create( | ||||||
|  |   'fr-FR', | ||||||
|  |   IntlDateFormatter::FULL, | ||||||
|  |   IntlDateFormatter::FULL, | ||||||
|  |   'Europe/Paris', | ||||||
|  |   IntlDateFormatter::GREGORIAN, | ||||||
|  |   'O' | ||||||
|  | ); | ||||||
| ?>
 | ?>
 | ||||||
| 
 | 
 | ||||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||||
| @ -22,10 +37,10 @@ setlocale(LC_TIME, 'fr_FR.utf8','fra'); | |||||||
|       <br> |       <br> | ||||||
|       <?php include 'includes/menu.php'; ?>
 |       <?php include 'includes/menu.php'; ?>
 | ||||||
|     </center> |     </center> | ||||||
|     <footer>   <p style="text-align:right;">Mis à jour le <?php echo strftime("%d %B %Y à %H:%M:%S UTC%z", strtotime($mtime)); ?></p> </footer>
 |     <footer>   <p style="text-align:right;">Mis à jour le <a href="https://git.gnous.fr/gnous/main_website/commit/<?php echo $last_rev;?>" target="_blank"><?php echo datefmt_format($fmt, $mtime); ?></a></p> </footer>
 | ||||||
|     <br> |     <br> | ||||||
|     <br> |     <br> | ||||||
|     <b>NOTA :</b> Toutes les dates sont exprimées dans le fuseau horaire Europe/Paris (actuellement UTC<?php echo strftime("%z", strtotime($today)); ?>).
 |     <b>NOTA :</b> Toutes les dates sont exprimées dans le fuseau horaire Europe/Paris (actuellement <?php echo datefmt_format($fmt_today, $today); ?>).
 | ||||||
|     <br> |     <br> | ||||||
|     <b>NOTA BIS:</b> Pour des raisons évidentes de disponibilité, ce site web n'est pas hébergé sur la même machine que les services de GNOUS. |     <b>NOTA BIS:</b> Pour des raisons évidentes de disponibilité, ce site web n'est pas hébergé sur la même machine que les services de GNOUS. | ||||||
|     <br> |     <br> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user