Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2004
Posts: 42
journeyman
journeyman
Joined: Jan 2004
Posts: 42
Code
###########################
# Suche in ubbt.inc.php
# Search in ubbt.inc.php
##########################

      elseif ($timeformat == "long") {
        $time = @date("D M d Y h:i A", $time);
      }

######################
# ersetze es durch
# replace it also
#####################

      elseif ($timeformat == "long") {
        $time = @date("D M d Y h:i A", $time);
      }
      
      elseif ($timeformat == "ger1") {
        $time = @date("d.m.Y H:i", $time);
      }
      
      elseif ($timeformat == "ger2") {
        $time = @date("d.m.y H:i", $time);
      }

===========================================================
###############################
# Suche in editdisplay.php
# Search in editdisplay.php
#############################

   $long="";$short1="";$short2="";$short3="";$short4="";$short5="";

######################
# ersetze es durch
# replace it also
#####################

   $long="";$ger1="";$ger2="";$short1="";$short2="";$short3="";$short4="";$short5="";

################
# dann suche
# then search
###############

   if ($timeformat == "long") {
      $long = "SELECTED";
   }

######################
# ersetze es durch
# replace it also
#####################

   if ($timeformat == "long") {
      $long = "SELECTED";
   }
   elseif ($timeformat == "ger1") {
      $ger1 = "SELECTED";
   }
   elseif ($timeformat == "ger2") {
      $ger2 = "SELECTED";
   }

===========================================================
#################################################
# Suche in templates/default/editdisplay.tmpl
# Search in templates/default/editdisplay.tmpl
################################################

  <option value="long" $long>{$ubbt_lang['LONG']}

######################
# ersetze es durch
# replace it also
#####################

  <option value="long" $long>{$ubbt_lang['LONG']}
  <option value="ger1" $ger1>TT.MM.JJJJ 23:59
  <option value="ger2" $ger2>TT.MM.JJ 23:59

===========================================================
##################################
# Suche in admin/edittheme.php
# Search in admin/edittheme.php
#################################

   $long="";$short1="";$short2="";$short3="";$short4="";$short5="";
   if ($theme['timeformat'] == "long") {
      $long = "SELECTED";
   }

######################
# ersetze es durch
# replace it also
#####################

   $long="";$ger1="";$ger2="";$short1="";$short2="";$short3="";$short4="";$short5="";
   if ($theme['timeformat'] == "long") {
      $long = "SELECTED";
   }
   elseif ($theme['timeformat'] == "ger1") {
      $ger1 = "SELECTED";
   }
   elseif ($theme['timeformat'] == "ger2") {
      $ger2 = "SELECTED";
   }

################
# dann suche
# then search
###############

      <option value=\"long\" $long>Sun Mar 7 10:19:48 2000

######################
# ersetze es durch
# replace it also
#####################

      <option value=\"long\" $long>Sun Mar 7 10:19:48 2000
      <option value=\"ger1\" $ger1>TT.MM.JJJJ 23:59
      <option value=\"ger2\" $ger2>TT.MM.JJ 23:59

===========================================================

Nettomo


Gruß/Greeting

NETTOMO

-----------------------------
Admin of
www.u3b.eu
www.hibiduri.net
www.nettomo.de
Joined: Jun 2006
Posts: 142
G
member
member
G Offline
Joined: Jun 2006
Posts: 142
And while you are at it, can you please add the ISO/EU standardized time format so that I don't have to add it to my own board which I've had to do for every version I've used since 2.8?

Code
      elseif ($timeformat == "iso") {
        $time = @date("Y-m-d H:i:s", $time);
      }


aka Olle Johansson
Joined: Jun 2006
Posts: 93
A
journeyman
journeyman
A Offline
Joined: Jun 2006
Posts: 93
Yes, please.
German and ISO should be standard.

As an alternative, let the admin create his own format by defining it with the variables used in the php date function.


---
Take your community to the next level

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 8:50 AM
Who's Online Now
0 members (), 399 guests, and 96 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)