Plugin Directory

Changeset 1883423


Ignore:
Timestamp:
05/29/2018 02:56:23 PM (8 years ago)
Author:
jondor
Message:

fixed timezone issue

Location:
phototools/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • phototools/trunk/phototools.php

    r1882795 r1883423  
    22/**
    33 * @package phototools
    4  * @version 1.0
     4 * @version 1.1
    55 */
    66/*
     
    99Description: Dashboard widgets for photosites
    1010Author: Gerhard Hoogterp
    11 Version: 1.0
     11Version: 1.1
    1212Author URI: https://www.funsite.eu/
    1313*/
     
    2121    const FS_TEXTDOMAIN = 'phototools';
    2222    const FS_PLUGINID = 'phototools';
     23    const NO_IMAGE = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 39.687 39.688" height="150" width="150"><g transform="matrix(1.76368 0 0 1.6497 -8.564 -130.72)" fill="#fff" stroke="gray" stroke-width=".155"><rect width="22.34" height="23.898" x="4.936" y="79.318" ry=".399" stroke-linecap="round" stroke-miterlimit="0" paint-order="fill markers stroke"/><path d="M4.936 79.318l22.34 23.898M27.275 79.318l-22.34 23.898" fill-rule="evenodd"/></g></svg>';
    2324
    2425    public function __construct() {
     
    382383
    383384    function publishingSoon() {
     385
    384386        $phototools_options = get_option('phototools_options');
    385387        $args = array(
     
    392394            'date_query' => array(
    393395                array(
    394                     'after' => strftime('%T %D', time()) ,
    395                     'inclusive' => false, // Don't include the current post in the query
    396                    
     396                    'after' => current_time( 'mysql' ) ,
     397                    'inclusive' => true, // Don't include the current post in the query,
    397398                )
    398399            )
     
    417418            'date_query' => array(
    418419                array(
    419                     'before' => strftime('%T %D', time()) ,
     420                    'before' => current_time( 'mysql' ) ,
    420421                    'inclusive' => false, // Don't include the current post in the query
    421                    
    422422                )
    423423            )
  • phototools/trunk/readme.txt

    r1882795 r1883423  
    55Tested up to: 4.9.5
    66Requires PHP: 5.6
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88Donate link: https://www.funsite.eu/plugins/&utm_source=readme&utm_campaign=phototools
    99License: GPLv2 or later
     
    4141First release
    4242
     43= 1.1 =
     44Fixed timezone issue
     45
    4346== Upgrade Notice ==
    4447
Note: See TracChangeset for help on using the changeset viewer.