Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-03-08 20:32:36

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Article timestamp out by 1 hour

I have an article that went live today (March 8th, 2015). I set the publish time to 06:00:00 (6am). In the article list, it’s shown as 07:00:00 (7am). When I set it back to 06:00:00 and save the timestamp, it reverts to 07:00:00. Every time.

An article posted two days ago accepts the 06:00:00 timestamp, and so does the article set to go live in two days.

Half-fat diags:

Textpattern version: 4.5.7 (r5900)
Last update: 2014-10-27 17:16:23/2014-10-27 17:12:47
Document root: /var/www/vhosts/example.org/www
$path_to_site: /var/www/vhosts/example.org/www
Textpattern path: /var/www/vhosts/example.org/www/textpattern
Permanent link mode: title_only
Temporary directory path: /tmp
Site URL: example.org
PHP version: 5.5.9-1ubuntu4.6
GD Graphics Library: 2.1.1-dev; supported formats: GIF, JPG, PNG.
Server TZ: America/New_York
Server local time: 2015-03-08 16:29:52
DST enabled?: 0
Automatically adjust DST setting?: 0
Time zone: Europe/London (0)
MySQL: 5.5.41-0ubuntu0.14.04.1
Locale: en_GB.UTF-8
Server: Apache/2.4.7 (Ubuntu)
Apache version: Apache/2.4.7 (Ubuntu)
PHP server API: apache2handler
RFC 2616 headers: 
Server OS: Linux 3.13.0-24-generic
Active plugins: rah_sitemap-1.2
Admin-side theme: classic 4.5.7

Pre-flight check: 
------------------------
Image directory is not writable: /var/www/vhosts/example.org/www/images
File directory path is not writable: /var/www/vhosts/example.org/www/files
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority, 
------------------------

<code>.htaccess</code> file contents: 
------------------------
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{HTTP_HOST} ^example.org
	RewriteRule (.*) http://www.example.org/$1 [R=301,L]
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]

</IfModule>

AddType image/svg+xml  svg svgz
AddEncoding gzip       svgz

<IfModule mod_gzip.c>
	AddOutputFilterByType DEFLATE text/plain
	AddOutputFilterByType DEFLATE text/html
	AddOutputFilterByType DEFLATE text/xml
	AddOutputFilterByType DEFLATE text/css
	AddOutputFilterByType DEFLATE application/xml
	AddOutputFilterByType DEFLATE application/xhtml+xml
	AddOutputFilterByType DEFLATE application/rss+xml
	AddOutputFilterByType DEFLATE application/javascript
	AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
------------------------

I’m sure I’ve encountered this before but can’t pinpoint why it’s happening. Is it something to do with the server and Textpattern time zone discrepancy?

Offline

#2 2015-03-08 20:59:38

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Article timestamp out by 1 hour

Must be Daylight Saving Time since it started today.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2015-03-08 21:16:02

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: Article timestamp out by 1 hour

Ah, didn’t know that – and actually that makes sense. Thank you, Matt.

Some odd behaviour:

  • if I set it to 01:59:59, it stays at 01:59:59
  • if I set it to 02:00:00, it jumps to 04:00:00 (+ 2hr)
  • if I set it to 02:59:59, it jumps to 04:59:59 (+ 2hr)
  • if I set it to 03:00:00, it jumps to 04:00:00 (+ 1hr)
  • if I set it to 06:59:59, it jumps to 07:59:59 (+ 1hr)
  • if I set it to 07:00:00, it stays at 07:00:00

There’s an odd twilight zone between 02:00:00 and 06:59:59. Very weird.

Offline

Board footer

Powered by FluxBB