Forum Replies Created

Viewing 15 Topics - 1 through 15 (of 23 total)
Author Posts
December 9, 2014 at 11:04 am in reply to: date format 32019
Joanne Joanne

yes – we will have to wait and see.. hopefully it will be there for
those users who view the things the other way around!

December 8, 2014 at 2:13 pm in reply to: date format 31983
Joanne Joanne

Hi

OK when I chage the functions code – it does change the TEXT date BUT
does not change the pop-up calender where you pick the add to do list ‘
start date and end date’ – the calender is still in USA time and the
date in the box is 5/6/15 instead of 6/5/15 —

function cpm_get_date( $date, $show_time = false ) {

$date = strtotime( $date );

if ( $show_time ) {
$format = get_option( ‘date_format’ ) . ‘ ‘ .
get_option( ‘time_format’ );
} else {
$format = get_option( ‘date_format’ );
}
//$format = ‘l, F j, Y’;
$date_html = sprintf( ‘%2$s’, date( ‘c’, $date ), date_i18n(
$format, $date ) );

return apply_filters( ‘cpm_get_date’, $date_html, $date );
}

any ideas how to make the calender picker AUSTRALIAN time zone

Joanne

Sekander Badsha wrote:

Thank you @Alfredo for being such a kind heart.

For you both, the direction was correct. The date format and the time zone
function is located in “includes/functions.php” file.
There is a filter named `cpm_get_date`.
You can use that to do anything to do with date.

:)

December 4, 2014 at 7:05 pm in reply to: date format 31854
Joanne Joanne

yes – Luckly I spotted that the date text was correct – one would assume that the date picker being in the wrong format would not result in the lines of text being shown correctly. I just told my client – that even though it SEEMS to be wrong it is actually right…and to ignore the fact that the start date and end date as shown in the boxes the wrong way around will auto correct themseleves.

Really if you think about it – the program should have a settings button to set your region like most other calander plugings have in their settings on set up.

Thank you for sticking with my wooees… its nice to know that another user out there is prepared to pass on some of their knowledge and fixes to us in strife!

good luck!

Joanne

December 4, 2014 at 5:19 pm in reply to: date format 31833
Joanne Joanne

Hi

The text opposite the user name is correct format

the Start date and end date is not in the right format when you click
the calender

Is this what you see your end when you are setting the dates in the
boxes – turned the wrong way around ?

weDevs Team wrote:

Alfredo Pernin wrote:

I think the calendar is a different file-subplugin. I remember I had to add
week numbers and change the starting day to Monday in a js minified file –
the issue is somewhere in the support forum (search for Alfredo and you’ll
find it). So no, I don’t expect it would affect the calendar. This would
affect milestones, time logger plugin, todo lists, etc.

/A.

December 4, 2014 at 3:59 pm in reply to: date format 31820
Joanne Joanne

it strange how the data against the TO DO LIST is written correctly after I add it –

Sub Title B 2 Comments Joanne J Smith Wednesday, December 3, 2014 – Wednesday, December 31, 2014 [21%]

HOWEVER when you click on the Calender to pick a ‘start date’ and ‘end date’ it is in USA date so the question is – did the coding correct the date to AUstralian Time in written format BUT I need to now change something else to make the LIVE calender look correct as when you pick the date it show in the box start boc 12/4/2014 and end box 57/6/2014

………………

Am I looking at 2 different issues ?

ALSO I turned off every plugin and picked another standard template and that did not change the calander picker part

now I am really confusing myself —— calender picker is wrong BUT the printed text results is correct

what do you see when you click on the calender ?

Joanne

December 4, 2014 at 3:35 pm in reply to: date format 31817
Joanne Joanne

– I am starting to turn off all the plugins now – to see if there is a conflict

do you see your date as 4/11/2014 or 4.11.2014 format ?

thank you for all your kind suggestions – just a pitty the work around did not work for me

take care

j

December 4, 2014 at 3:02 pm in reply to: date format 31810
Joanne Joanne

STILL DID NOT WORK – here is the code change

function cpm_get_date( $date, $show_time = false ) {

$date = strtotime( $date );

if ( $show_time ) {
$format = get_option( ‘date_format’ ) . ‘ ‘ . get_option( ‘time_format’ );
} else {
$format = get_option( ‘date_format’ );
}
$format = ‘l, F j, Y’;
$date_html = sprintf( ‘‘, date( ‘c’, $date ), date_i18n( $format, $date ) );

return apply_filters( ‘cpm_get_date’, $date_html, $date );
}

I also wonder would this PHP script need to change as you can see some wrong date codes showing USA time

function cpm_date2mysql( $date, $gmt = 0 ) {
$time = strtotime( $date );
return ( $gmt ) ? gmdate( ‘Y-m-d H:i:s’, $time ) : gmdate( ‘Y-m-d H:i:s’, ( $time + ( get_option( ‘timezone_string’ ) * 3600 ) ) );
}

J

December 4, 2014 at 2:31 pm in reply to: date format 31806
Joanne Joanne

I even tried changing line 151 with some PHP time stamps

http://php.net/manual/en/class.datetime.php

from

function cpm_date2mysql( $date, $gmt = 0 ) {
$time = strtotime( $date );
return ( $gmt ) ? gmdate( ‘Y-m-d H:i:s’, $time ) : gmdate( ‘Y-m-d H:i:s’, ( $time + ( get_option( ‘

to

function cpm_date2mysql( $date, $gmt = 0 ) {
$time = strtotime( $date );
return ( $gmt ) ? gmdate( ‘D, d M y H:i:s O’, $time ) : gmdate( ‘D, d M y H:i:s O’, ( $time + ( get_option( ‘timezone_string’ ) * 3600 ) ) );

NOTHING happened

}

December 4, 2014 at 2:09 pm in reply to: date format 31804
Joanne Joanne

OK
I have deleted the other plugin

and tried

//$format = ‘F j, Y’;

shows: 12/17/2014 on the calendar

Nothing changed

and tried

//$format = ‘l, F j, Y’;

shows: 12/17/2014 on the calendar

Nothing changed

I am really pulling my hair out. This should be an easy fix ?

do you know or heard of any other plugin that changes the wp admin date and time like the wp date range lugin did ?

I am not sure why there is NOT an option to change from USA format to Australian or UK for those clients – a very obvious need.

thank you for your help so far

Joanne

Joanne

December 4, 2014 at 1:34 pm in reply to: date format 31801
Joanne Joanne

guess what – it worked FINE in the back end WP dashboard BUT I just clicked on the front end and there is an fatal error on line 58 –

Fatal error: Call to a member function get_queried_object_id() on a non-object in /home/———–/www/www/wp-includes/query.php on line 58

so IT did fix it but them broke my site! grrrrrr when deactivate the plugin – the website opens BUT the dates are back to USA time ………………… very very frustrating … by the way – the blogs show the correct time and date format..it just this Project Manager progam that is not.

SO back to square 1

any ideas ?

Joanne

December 4, 2014 at 12:24 pm in reply to: date format 31794
Joanne Joanne

OK fixed the problem

added this to CSS

.cpm {
font-size: 14px;
line-height: 21px;
vertical-align: baseline;
position: relative;
left: 50x;
}

I can now see al the tabs!

Joanne

December 4, 2014 at 12:21 pm in reply to: date format 31793
Joanne Joanne

OK I fixed the issue

I installed a plugin called

WP Date Range

and set the date to read dd/mm/yyyy

( I also deleted the line //$format = ‘j M, Y’; in the functions.php and uploaded )

now my clients are seeing Australian calender!

Joanne

December 4, 2014 at 11:45 am in reply to: date format 31784
Joanne Joanne

Hi

Ok I have tried

function cpm_get_date( $date, $show_time = false ) {

$date = strtotime( $date );

if ( $show_time ) {
$format = get_option( ‘date_format’ ) . ‘ ‘ . get_option( ‘time_format’ );
} else {
$format = get_option( ‘date_format’ );
}
//$format = ‘j M, Y’;
$date_html = sprintf( ‘‘, date( ‘c’, $date ), date_i18n( $format, $date ) );

return apply_filters( ‘cpm_get_date’, $date_html, $date );
}

DID NOT WORK

WHen I look at my General Settings

even though I have clicked all the settings to show LOCAL TIME – Perth Australia and
ticked the date to show 04/12/2014 and saved BUT if I look at the other setting on the TimeZone settings on the page

UTC time is 2014-12-04 5:35:36 Local time is 2014-12-04 13:35:36

so the LOCAL time is still the wrong way around – is USA format

I agree with you – until I get this GENERAL setting area to show in the WP admin

Local time is 04-12-2014 13:35:36 – it may never work ?

Any ideas on how to get the LOCAL time to actually appear correctly as I have ticked ALL the correct general boxes to allow it to show the changes? AND read about 100 tutorials on how this is how to do it!

I need this fix for my client as he is sending out jobs in the to-do-list to assigned clients and the calender is telling them to working in MAY while it should be March!

Joanne

December 4, 2014 at 11:25 am in reply to: to do list page 31780
Joanne Joanne

Hey all here is the FIX for the missing tabs – open admin.css and adjust this line of code

.cpm {
font-size: 14px;
line-height: 21px;
vertical-align: baseline;
position: relative;
left: 60px;
}

save and upload – refresh your WP dashbaord and you can see all the tabs!

Thanks Kristin for the idea of getting to the SOLUTION via CSS – but thought I’d give you all the code.

Joanne

December 4, 2014 at 11:17 am in reply to: date format 31777
Joanne Joanne

Which line of CSS do I change to indent it ?

is the correct line
.cpm {

to be

.cpm {
font-size: 14px;
line-height: 21px;
vertical-align: baseline;
position: relative;
left: 200px;
}

thanks

joanne

weDevs Team wrote:

Viewing 15 Topics - 1 through 15 (of 23 total)