@@ -82,19 +82,19 @@ public function convertSpecifiers($format, $time = null) {
82
82
private function __translateSpecifier ($ specifier ) {
83
83
switch ($ specifier [1 ]) {
84
84
case 'a ' :
85
- $ abday = __cn ('cake ' , 'abday ' , 5 );
85
+ $ abday = __dc ('cake ' , 'abday ' , 5 );
86
86
if (is_array ($ abday )) {
87
87
return $ abday [date ('w ' , $ this ->__time )];
88
88
}
89
89
break ;
90
90
case 'A ' :
91
- $ day = __cn ('cake ' , 'day ' , 5 );
91
+ $ day = __dc ('cake ' , 'day ' , 5 );
92
92
if (is_array ($ day )) {
93
93
return $ day [date ('w ' , $ this ->__time )];
94
94
}
95
95
break ;
96
96
case 'c ' :
97
- $ format = __cn ('cake ' , 'd_t_fmt ' , 5 );
97
+ $ format = __dc ('cake ' , 'd_t_fmt ' , 5 );
98
98
if ($ format != 'd_t_fmt ' ) {
99
99
return $ this ->convertSpecifiers ($ format , $ this ->__time );
100
100
}
@@ -116,13 +116,13 @@ private function __translateSpecifier($specifier) {
116
116
return date ('jS ' , $ this ->__time );
117
117
case 'b ' :
118
118
case 'h ' :
119
- $ months = __cn ('cake ' , 'abmon ' , 5 );
119
+ $ months = __dc ('cake ' , 'abmon ' , 5 );
120
120
if (is_array ($ months )) {
121
121
return $ months [date ('n ' , $ this ->__time ) -1 ];
122
122
}
123
123
return '%b ' ;
124
124
case 'B ' :
125
- $ months = __cn ('cake ' , 'mon ' , 5 );
125
+ $ months = __dc ('cake ' , 'mon ' , 5 );
126
126
if (is_array ($ months )) {
127
127
return $ months [date ('n ' , $ this ->__time ) -1 ];
128
128
}
@@ -133,14 +133,14 @@ private function __translateSpecifier($specifier) {
133
133
case 'P ' :
134
134
$ default = array ('am ' => 0 , 'pm ' => 1 );
135
135
$ meridiem = $ default [date ('a ' ,$ this ->__time )];
136
- $ format = __cn ('cake ' , 'am_pm ' , 5 );
136
+ $ format = __dc ('cake ' , 'am_pm ' , 5 );
137
137
if (is_array ($ format )) {
138
138
$ meridiem = $ format [$ meridiem ];
139
139
return ($ specifier [1 ] == 'P ' ) ? strtolower ($ meridiem ) : strtoupper ($ meridiem );
140
140
}
141
141
break ;
142
142
case 'r ' :
143
- $ complete = __cn ('cake ' , 't_fmt_ampm ' , 5 );
143
+ $ complete = __dc ('cake ' , 't_fmt_ampm ' , 5 );
144
144
if ($ complete != 't_fmt_ampm ' ) {
145
145
return str_replace ('%p ' ,$ this ->__translateSpecifier (array ('%p ' , 'p ' )),$ complete );
146
146
}
@@ -154,13 +154,13 @@ private function __translateSpecifier($specifier) {
154
154
case 'u ' :
155
155
return ($ weekDay = date ('w ' , $ this ->__time )) ? $ weekDay : 7 ;
156
156
case 'x ' :
157
- $ format = __cn ('cake ' , 'd_fmt ' , 5 );
157
+ $ format = __dc ('cake ' , 'd_fmt ' , 5 );
158
158
if ($ format != 'd_fmt ' ) {
159
159
return $ this ->convertSpecifiers ($ format , $ this ->__time );
160
160
}
161
161
break ;
162
162
case 'X ' :
163
- $ format = __cn ('cake ' , 't_fmt ' , 5 );
163
+ $ format = __dc ('cake ' , 't_fmt ' , 5 );
164
164
if ($ format != 't_fmt ' ) {
165
165
return $ this ->convertSpecifiers ($ format , $ this ->__time );
166
166
}
0 commit comments