Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4622684
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:52:42+00:00 2026-05-22T02:52:42+00:00

CodeIgniter stores timezones for its date class in system/language/english/date_lang.php I would like to change

  • 0

CodeIgniter stores timezones for its date class in

system/language/english/date_lang.php

I would like to change the strings in this file so that

$lang['UM12']   = '(UTC -12:00) Baker/Howland Island';
$lang['UM11']   = '(UTC -11:00) Samoa Time Zone, Niue';

would instead be

$lang['-12:00'] = '(UTC -12:00) Baker/Howland Island';
$lang['-11:00'] = '(UTC -11:00) Samoa Time Zone, Niue';

Is this possible at all?

Any change I make to the UM__ portion of one line makes it show as a blank on the dropdown. The remaining (unchanged) lines appear OK.

I have also tried to clone this file to application/language/english/ with similar bad results.

Any insights on this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:52:43+00:00Added an answer on May 22, 2026 at 2:52 am

    It looks like this would require hacks to the date_helper.php file which I am not willing to do.

    Instead, the date class in CI has the timezones() function which allows you to convert from, for example, UM5 to -5. In that case one can wrap this function around the U__ value coming from the view/dropdown — and then save it to DB as -5 or some other INT.

    Since I want to show the user their selected timezone on that same dropdown, I am forced to have DB fields for the U__ and INT timezone formats. As far as I know, there is no CI function to convert from -5 to UM5.

    So, for the user, I pull the U__ format into the view to autopopulate the dropdown.

    For timezone conversions and such, I use the INT format.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to store images in my mySQL database using the CodeIgniter PHP
I am using codeigniter's session class to handle my PHP sessions. One of the
I'm using CodeIgniter's Session class to manage my sessions for a cart/checkout system. The
i have a codeigniter website structured like so: website.org/files/stuff/1/example.pdf website.org/www/index.php So all files (many
In CodeIgniter, or core PHP; is there an equivalent of Rails's view partials and
I'm new to CodeIgniter, and I need some help. I'd like to implement the
Using PHP and/or Codeigniter, I want to create some string templates to be store
Codeigniter has its own Models path, where models extend from CI_Model. I'm using RedBean
I am using CodeIgniter framework for PHP . There are some pages that are
Has anybody tried out simpleloginsecure authentication library for codeigniter? I like that it has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.