Search the Community
Showing results for tags 'date field'.
hello forum, after days of smooth work with pw i'm stuck with what looks like a simple problem at first glance: i cant get date field to output localized german names for months. for example i get "july" instead of "juli" or "october" instead of "oktober". this is my setup: - i have german language pack installed - i use a datetime field with date input format = d-m-Y and date output format = %B %Y - my config.php has this lines $config->timezone = 'Europe/Berlin'; setlocale(LC_ALL, 'de_DE'); - my php-code is (where project_commission is the date field) <?php // pull projec
Hi, i want to set a date field value by api but i have problems to do so. I think this should be work: $page->of(false); $page->expire_date = time(); $page->save(); $page->of(true); but when i look into the field i get not the saved time. The output is always: 30 Nov, -0001 00:00 (timestamp: -62169987208). when i echo the time directly after the $page->of(true); than i get the current time but avter reload and output the time bevor $page->of(false); i get the time above! do you have any idea whats the problem?