datetime

Events happening in the community are now at Drupal community events on www.drupal.org.
joseft40's picture

creando un campo datetime

saludos estoy desarrollando un modulo, en dicho modulo creo un tipo de contenido y determinados campos en el archivo install, uno de esos campos es un campo datetime, a continuación el código que tengo desarrollado en el hook_ ... installed_instances() :

'field_fecha' => array(
'field_name' => 'field_fecha',
'label' => $t('Fecha del Proyecto'),
'description' => $t('Indique la fecha de inicio del proyecto'),
'required' => TRUE,
'type' => 'datetime',
'widget' => array(
'type' => 'date_popup',
//desde aca mi dolor de cabeza :)

Read more
xmacex's picture

How to present opening hours

Hiya. Do you have suggestions for storing and presenting opening hours in Drupal 7? This is quite a mundane and universal problem, so i'm absolutely sure this has been solved in many ways. There is the Opening Hours -module, which isn't available for D7 at this time though. The Danish ting.DING uses Office Hours, and present this information very well (see the Aarhus libraries f.ex.) in a list, on a map and for individual libraries.

Read more
killua99's picture

Bug db_query datetime columns ?

Hola,

Como desarrollador de Drupal abro esta discusión en busca de ayuda y/o confirmación sobre un posible bug que estoy viendo que se me esta presentando a la hora de crear un modulo.

Explico el bug que me esta ocurriendo.

Síntomas:

A la hora de crear un SQL para obtener una simple fecha la función db_query me retorna sin el día correcto por ejemplo:


<?php
$sql = 'SELECT DATE_FORMAT(date_added,\'%d-%m-%Y\') as date FROM {tabla_test} GROUP BY date_added ORDER BY date_added LIMIT 1'; // LIMIT 1 para obtener solo un resultado para test
$res = db_query($sql);

Read more
spirodon's picture

RSVP module question

Hello all,

I'm using the RSVP module for a website I'm developing and I have a question regarding its use. It's Drupal 6.

I'm looking to have other users RSVP for my events (created using the Date & Calendar modules) without actually having to send out the invitations. Kind of like what the Signup module does.

Is there a way to do this with the RSVP module that I'm unaware of? It seems to me like you have to send out the invites first and then the only people who can do the RSVP are the invitees. But I want EVERYONE to be able to RSVP if they want without needing an invite.

Read more
gerhard killesreiter's picture

Port event_views module to event 5.2

Hi there,

I need some help to update the event_views module to the rewritten version of the event module aka "event 5.2". I am not too familiar with views.

The main change is the change of storage format for dates. All previous versions of event used "seconds since 1970" as storage mode, 5.2 uses actual SQL dates.

Please let met know if you are interested in helping out, I'd hate to release event 5.2 without views support.

Cheers,
Gerhard

Read more
Subscribe with RSS Syndicate content