Slackware :: 13.37 - Need To Define Date / Timezone In PHP
May 18, 2011
I need to define date.timezone in PHP for an application and I can't seem to figure out how to get Apache (or whatever) to use changes in /etc/httpd/php.ini. For example, I need to set the value of date.timezone to America/Detroit and the latitude and longitude values. I'm assuming that simply stopping and restarting HTTPD ought to make that happen (it doesn't) or rebooting the system should (nope). I must have missed something somewhere.
I'm trying to install Symfony to Debian 7 amd64 LAMP Server and I have some lil problems
When I run php my_project_name/app/check.php
It says: [ERROR] Your system is not ready to run Symfony2 projects Fix the following mandatory requirements
* date.timezone setting must be set > Set the "date.timezone" setting in php.ini* (like Europe/Paris).
I already tried to edit php.ini with command : sudo nano /etc/php5/apache2/php.ini
I deleted ; and so under [Date] section is now following sentence: date.timezone = Europe/Helsinki after that restarted apache /etc/init.d/apache2 restart
I just installed OpenSuse 11.2 3 months ago on my laptop. I'm running with the Gnome Desktop. I live in Chicago and am currently in London. When I set the timezone to Europe/UK the date/time are correct UNTIL I reboot the laptop. After reboot if I type in the 'date' command it shows the time at 6+ hours from London time. When I check the hardware clock 'hwclock' it displays the correct London time. I check the time setup with yast and it shows the correct Timezone but again shows the 6+ hours difference. I change the time in yast and and my applications ( e-mail) display the correct local time again... UNTIL I reboot and then I'm right back where I started - wrong local time ! I suppose I could write a little startup script to do a 'hwclock --hctosys' but I thought I'd check here first to see if anyone out there had any ideas..BTW - I hate to say this but on the same laptop running XP I don't have this problem AND I didn't see this problem in OpenSuse 10.3 or 11.1
I am having a problem getting my Slackware 13.0 to accept a timezone cmos setting change. My cmos was set to local time and my Slackware was displaying the correct time as EST. Cmos was set localtime to be compatible with dual booting Windows I have now removed Windows and replace it with Ubuntu. Now, Ubuntu wants the hardware clock to be UTC, which is the norm for unicis. SO, lets make Slackware treat the hardware clock as UTC.
I go to /etc/hardwareclock make these changes. utc #localtime
I reboot setting cmos to UTC, but now when I come up Slackware displays UTC and calls it EST. I go to the date/time app under the system xfce menu, but all it says it is set to UTC (EST) and change from the list below. The list below only has UTC listed. So, now how do I get it subtract the necessary five hours?
After having some problems with iptables not picking up automatically (without restart) the transition from winter time to summer time, and on advice from the iptables/netfilter mailing list, I've decided recently to go down the Unix way and set my hardware clock time to UTC/GMT instead of local time. I am, however, having some difficulty reconfiguring my entire machine to cope with this change.
1. I've used /usr/sbin/timeconfig - which took care of system wide timezone. After that, if I opened a terminal, du "su root" - and then check the date - it looks good. Doesn't affect though the logged in (non-root) user. Running "date" in bash window for logged (non-root) user returns wrong time (UTC) instead of local time. 2. I've added an export statement in ~/.bashrc, to set the timezone for the user account I use. That fixes the time for the logged in user, but only in the terminal. The time in fluxbox/X is still the UTC time.
Where is XOrg taking it's timezone for the logged in user? Do I amend/add to XOrg.conf? At the moment there is nothing about time zone in Xorg.conf (only contains few tweaked settings I've added to it - as I believe most of the rest is autoconfigured). I've searched - but couldn't find how Slackware configures timezones for individual users - aside from the timeconfig utility used during setup.
We just had daylight savings change (the clocks went back one hour at 2am). he machine that was on at 2am adjusted it's time on it's own. All the other machines (5 of them) were off at 2am are still on the 'old' time.Wwhat's the best way to ensure I don't have to adjust these manually next time daylight savings change? Maybe "ntpdate -s time.nist.gov &" in rc.local?
I tried "slackpkg update", and it came back with Code: ERROR: Verification of the gpg signature on CHECKSUMS.md5 failed! This could mean that the file is out of date or has been tampered with. I googled this message and it pointed me to this thread: [URL]
However, when I type date I get this: Code: bash-3.1$ date Mon Sep 13 19:55:31 BST 2010 Which is correct for me. Not sure what to do now.
Using slack 13.0 32-bit I have a dual-boot configuration with slack at sda1, sda2, sda3 and ubuntu 10.04 on sda6, sda7, sda8 When I boot into ubuntu, then boot back into slack, the date setting is change to '00.. something' (zero hours).
when I installed 13.37 I created a local copy of the entire stable tree (source/ and all the rest) just to have all that stuff around to browse offline.
Now, to instruct myself, I'm trying to use rsync to keep this stuff up to date. But I seem either to have misread the rsync man page or ... well, I don't know. I am issuing the following command and getting the results seen below:
I'm looking for a method for modifying some jpg photo files last modification date with the corresponding timestamp creation date of each file.The reason is that shotwell import pictures in folders according to last modification date which is stupid on my opinion.
As a photographer I'm constantly taking photos and storing them in folders. Now occasionally I'm using two cameras (either for different settings or an assistant is also taking photos) which means that for one event I can have differently named images.Both cameras have the same time set (which always helps in Windows) but in Ubuntu when trying to sort my folder by date taken I can't.The options I'm given are to sort them: Manually, by Name, by Size, by Type, by Modification date and by Emblem.Now none of those are helpful to me once I've done a few edits to the images.So please if anyone knows, how do you organise a folder with images taken on different cameras by Date Taken rather than Date Edited?
I am using CRON to create a new, blank file, every minute, in a specific location on my web server. After web searching, and reading man pages, I get the impression that the following command is supposed to work:touch /home/mydomain/var/folder/attachments/`date +%H%M`.txtThis should give me a new file with a file name that is the current hour and minute.However, when executed, the CRON mailer reports:touch /home/mydomain/var/folder/attachments/`date +/bin/sh: -c: line 0: unexpected EOF while looking for matching /bin/sh: -c: line 1: syntax error: unexpected end of fileSo, it looks like shell is seeing the plus (+) sign as an EOFObviously, nothing get created.What would be the easiest, single line command to create an empty file, at a given location, with a time based file name
In the panel at the top of the screen it shows the time of day - perhaps at the international date line. Is there a setting somewhere that allows me to inform the system of my time zone? Tried "info timezone" - drew a blank. Don't know where to look.
Is there any function I can use to set the timezone of the entire system in linux using C? (Other than creating a symbolic link between /etc/localtime and /usr/share/zoneinfo/). Could I specify the timezone offset in seconds by any chance?
So, here's my problem. Every time I'm trying to change my timezone, it last until I'm restarting my comp again, it seems like it doesn't save the changes permanently.I'm using Ubuntu v9.10 installed through Wubi. My timezone is set currently via BIOS.
I don't really like Los Angeles (they steal all our water) and neither Tijuana nor Vancouver make sense to me, so I am trying to make my own, custom timezone of Felton, California. How do I do this? I changed my /etc/timezone to "America/Felton" but upon reboot my calendar still says "Los Angeles". Which files do I need to change?
Code: # TIMEZONE OFFSET # This option is used to override the default timezone that this # instance of Nagios runs in. If not specified, Nagios will use # the system configured timezone.
I was wondering if there is a way of knowing what is the current set timezone for a linux server. I know that "date +%Z" gives the 3 letter abbreviation of the timezone, but then CST can be interpreted as Central Standard Time (US) and as China Standard Time. I'm looking for a way I could tell what is the real timezone, e.g. "Asia/Jerusalem", "Europe/London", etc. I know that I can set the timezone by symlinking /usr/share/zoneinfo/<Timezone Name> to /etc/localtime, but when I freshly install CentOS and choose my timezone, /etc/localtime isn't a symlink at all so I can't use this info...
I was needing to change the timezone on a CentOS 5.1 (but upgraded to 5.3) machine that doesn't have X installed nor did it (initially) have the system-config-date package installed. After some Googling it appeared that all I needed to do was copy over the desirec zoneinfo file to /etc/localtime and edit the /etc/sysconfig/clock file to zone that I choose. I then set the time and used that to set the hardware clockhe original timezone was "America/New_York" (EDT) and was wanting to change it to "US/Central" (CDT). After making the changes, when I do a "date" command it is still reporting the time in EDT. I then installed the system-config-date package and tried using /usr/sbin/timeconfig. I still get the result that the timezone is reported in EDT. The time is technically correct but is an hour ahead since its using EDT to report the time.
I'm newbie in Linux, but have used Windows and Mac OS X Leopard. Used RedHat in the past, and can't figure this out. I burned Fedora12-x86_64 DVD image on DVD, and start install. Whether I use "linux text" command from boot or just select Install at graphical prompt, everything goes OK until I select hostname. I leave it as "localhost.localdomain" and press Enter. It always give me an error "Can't load class=TimeZoneWindow".
My computer is connected via ethernet to my router, and I had no problems getting online in Windows. Now, in case there are hardware questions: Intel Pentium 4 with HyperThread enabled and 64bit support (Windows 7 Ultimate 64bit runs perfectly in 64bit mode) 2Gb of DDR 400Mhz RAM I have 2 SATA hard drives with RAID option as Mirror (BIOS settings - RAID or AHCI) And 128Mb ATI RAdeon X300 series. Pretty simple, but this error aborts my installation.
I tried to do Anaconda updates, but I have no clue about URL where the image is, ex: linux updates=[URL] or I tried configuring network: linux ip=192.168.1.113 netmask=255.255.255.0 gateway=192.168.1.1 dns=68.193.158.40,24.115.70.53 and no luck. Why does "Can't load class=TimeZoneWindow" appear? Is it a network issue or what? I've seen the screenshot for TimeZone screen in the Installation Guide, but I never get to it.
I'm trying to set the time in an embedded system ... There isn't a link/file /etc/localtime and /usr/ has only two subdirectories /usr/bin and /usr/sbin.Is there something I can try or do I just give up and make UTC be my timezone?
I have worked on redhat/fedora for last 5 yrs but now working on ubuntu as well. I have around 200 ubuntu VMs on which I have to change the timezone.I know I can do that using "dpkg-reconfigure tzdata",But doing it manually on 200 machines is not what I really want to do.Hence I am looking for a way to script this process.On fedora, its simple,change the "ZONE" entry in "/etc/sysconfig/clock" and copy corresponding file from /user/share/zoneinfo to /etc/localtime. Hence I can script is easily.But in ubuntu, with "dpkg-reconfigure tzdata", I don't know how to script it.
I checked the timezone with the 'setup' command, and found the timezone is still Asia/Shanghai. Did I change the timezone to Asia/Hong_Kong successfully? Why the 'setup' program still shows the former timezone? Is there any other way to change timezone in a non-interactive way other than relinking the /etc/localtime?
I want to change the time zone in my redhat server but its not working. I have made necessary changes to make it IST but not coming up. I have made it Asia/Calcutta and also Asia/Kolkata but not changes and its changes for other zones.
I have an issue when running the phpinfo() command on a webpage. Occasionally the Default timezone setting shows 'utc', at others it show 'Europe/Berlin'. To prove I'm not going mad I screen captured a short video of the display changing while all I was doing was pressing F5.
The system is set to a European timezone i.e. both date and hwclock commands show 'CET'. There was an update to the Debian tzdata package which I installed at the beginning of February 2010. I'm not aware of there being a problem before that but I could be wrong about that.