Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
9 views

REQUEST_TIME is in GMT eventhough site timezone is IST

In admin/config/regional/settings I can see that IST timezone is set. But when I print REQUEST_TIME constant I see GMT one. How to get the IST time in REQUEST_TIME ?
0
votes
0answers
54 views

Date field value timezone changing although site,field and user timezone is same

For view's footer I needed to compare field_last_date value with current date, no issues with comparison but when site's timezone is set to India(no option like Asia/Kolkata here am I missing ...
0
votes
2answers
145 views

Drupal timezone and database

I have a content type with datetime field. When I save node, in database I have 2014-04-28 11:00:00 for instance. But when I edit the node i have 2014-04-28 13:00:00. I guess that it has something to ...
1
vote
2answers
82 views

Migrating dates in the same timezone: convert arguments to subfields?

I have a migration that is successful except for the timezone. $this->addFieldMapping('dest_date', 'source_date'); For some reason the above code causes a timezone conversion to happen between ...
0
votes
0answers
13 views

Changing the time of Event depending on timezone

I have a content type named "Upcoming Events" which holds content for all upcoming events. These events can be either Workshops or Webinars. I would like to change the time of the event depending on ...
1
vote
2answers
22 views

How does Drupal display the correct time for a specific time zone?

I have a custom module that displays today's date and time: t('Today: ') . date('d F - H:i') When I change a user's time zone on their account page the time is 'magically' outputted correctly. How ...
0
votes
1answer
128 views

Drupal7 | Time shows differently in Frontend and Backend

The front end time shows as 3 hours behind the backend time of the same page. The correct time is the one on the backend. I set the time-zone correctly for the user and also the time show correctly ...
1
vote
1answer
383 views

How do I get the timezone form reference on a date field?

In Drupal 7 I have a date field in a content type that has the Time zone handling option set to "Date's time zone". Setting this option will render a drop down list of time zones in your date field. ...
0
votes
1answer
253 views

How to create a custom module to overwrite timezone display in Drupal 7

I found this post which is the information I need to make the timezone personalization I want. I have found other solutions but they are pretty old (Drupal 6). I am interested in knowing how to ...
1
vote
1answer
346 views

At user creation set different default timezone

When a new user applies for an account, how does one set the timezone default from 'America/Denver' to 'UTC' timzeone? It's ok to allow the user to change the timezone to a preferred timezone. ...
0
votes
1answer
98 views

How do I display date and time for multiple time zones?

I am webmaster at http://www.archerpoint.com. We would like to display our events in both Eastern and Pacific time. I only know how to control the system time zone or let the user set their own time ...
0
votes
1answer
113 views

Can I just change Drupal's default timezone to test to see if some scheduled rules will fire?

I need to test to see if some scheduled rules will fire as expected. I cannot change the server time, as I do not have access to do this. However, if I change Drupal's default timezone can I expedite ...
0
votes
1answer
244 views

Drupal Time Zone Problem

I've got some nodes which have different time value when I edit and display them. 13th November 2012 6 pm is the value that I input, however, when I tried to display that, it becomes 13th November ...
0
votes
1answer
767 views

How to use Drupal unixtime instead of timestamp

What is the proper Drupal way to deal with timestamp fields? I wanted to create two timestamp fields in a MySQL table, but ran into some problems that I can't solve (see this question). So now I ...
0
votes
1answer
892 views

Change Time Format

I'm confused about all of the time formats and then each format seems to have a matching format with a pm attached at the end. Does the pm signify that it will use 12 hour am and 12 hour pm vs 24 hour ...
1
vote
1answer
428 views

Convert D6 user timezone offset to D7 timezone string

In Drupal 6 user timezones are stored as second offset, such as: -3600. In Drupal 7 it's the timezone string, eg: Europe/Berlin. I would to migrate users with their timezone setting to D7, but it's ...
2
votes
1answer
741 views

How to override system_time_zones in Drupal 7

How can I override the system_time_zones() function without hacking the Drupal 7 core? I would like to modify how the dropdown list is presented, but cannot seem to get at it with hook_form_alter(). ...
1
vote
2answers
260 views

How can I add the +0430 timezone to Drupal 6?

As you know, Drupal 6 doesn't have the +0430 timezone in the date/time page. I want to add this specific item into timezone drop-down list. Does anybody know about this core patching? How can I do ...
1
vote
0answers
143 views

Problem with timezone

When I edit my node I have this date But when I save the system change the Time: I really don't understand because my timezone on the server and drupal are the same. And my field is well ...
0
votes
1answer
212 views

Convert timezone value from seconds to W3C hour format

Doing an API integration that requires timezones to be handed off in W3C format, while Drupal opts to store timezones in seconds. Wondering what the clean way to do this is, rather than stripping the ...
2
votes
2answers
4k views

Apply the timezone offset to my date field

I use the Date Module. My contenttype event dates are stored like field_date['de'][0]['value'] = 2011-12-09T10:40:00 (String, 19 characters ) field_date['de'][0]['value2'] 2011-12-09T13:10:00 ...
1
vote
1answer
4k views

Date form to unix timestamp

I'm using Drupal 7.8, and am trying to get the user to specify a date using the drupal date form. I want to take this date, and save it to a database as a unix timestamp. The trouble is, I think the ...
3
votes
2answers
1k views

Timezone Dropdown List in User Account

Doe anyone know how to change the timezone dropdown list in the user account/registration? So which file is the menu/settings located in? (Assuming I am using Garland theme if that matters, and the ...
1
vote
3answers
4k views

How do you apply timezone formatting to a date?

I'm trying to build my own output for a date field *see Group multiple times by day (multi-value date field) *, but the problem I'm having is how to apply the timezone? This article -> Date value to ...
6
votes
1answer
3k views

The differences between date time zone handling

There are several options for time zone handling, Site's time zone, Date's time, User's time zone, UTC and no time zone conversion. What are the differences between them? One case would be a ...